        [:thead
         [:tr [:th ""] [:th "Name"] [:th "Type"] [:th "Description"] [:th "Created At"] [:th "Organisation"] [:th "Project Code"]]]
        [:tbody
-        (for [row (sort-by :id (:data projects))]
+        (for [row (sort-by :project_id (:data projects))]
           (om/build (project-row data history projects table-id editing-chan) row))]]]]))
 
 (defmethod projects-table-html :default [_ _ _]

                  [:div [:div {:class "fa fa-exclamation-triangle"} alert-body]]
                  error
                  (str "edit-project-form-failure"))
           (bs/static-text cursor :id "Project ID")
           (bs/static-text cursor :programme_id "Programme ID")
           (bs/static-text cursor :created_at "Created At")
           (bs/text-input-control cursor owner :project :description "Description")

            editing        (-> data :projects :editing)
            adding-project (-> data :projects :adding-project)
            programme_id   (-> data :active-components :programmes)
            programme      (-> (filter #(= (:programme_id %) programme_id) (-> programmes :data)) first)]
        (html
         [:div.row#projects-div
          [:div {:class (str "col-md-12 " (if programme_id "" "hidden"))}
