          [:.workflow.dashboard
           [:.pane {:style {:width (str "calc(100% - " (:filter-width local-state) "px - 2px)")}}
            [:header
-            (dashboard-title state)
-            (om/build document-page-count-label state)
-            (om/build change-page-buttons state)]
-           [:.documents {:class ["col-3"]}
+            (dashboard-title state)]
+           [:.documents {:class ["col-3"]
+                         :on-scroll (partial on-documents-scroll state owner)}
             (let [documents (->> document-ids
                                  (map (partial get (:documents state)))
-                                 (remove nil?)
-                                 (sort-by (:sort/key local-state)))]
+                                 (remove nil?))]
               (om/build-all document-preview documents
                             {:key :id}))]]
           [:.pane {:style {:width (:filter-width local-state)}}

     (catch js/Error e nil))
   1))

(defn ^:private page-ids [state]
  (let [page (parse-page state)]
    (pagination/page-items (document-ids state)
                           page)))

(defn ^:private change-page-buttons [state owner _]
  (om/component
   (let [page (parse-page state)
         page-count (pagination/pages (document-ids state))
         navigation (:navigation state)
         route-fn (fn [page]
                    (-> navigation
                        (assoc-in [:query-params :page] page)
                        (nav/nav->route)))]
     (html
      [:nav.page
       [:a.button.prev {:class [(when (<= page 1)
                                  "disabled")]
                        :href (route-fn (dec page))}]
       [:a.button.next {:class [(when (>= page page-count)
                                  "disabled")]
                        :href (route-fn (inc page))}]]))))

(defn ^:private fetch-missing-documents!
  "Fetches all missing documents which will be visible in the

        (<! (fetch-missing-documents! state owner))))
    om/IInitState
    (init-state [_]
      {:filter-width css/default-right-sidebar-width})
    om/IRenderState
    (render-state [_ local-state]
      ;; Show all documents with ids found in :dashboard/document-ids
