       (let [cast! (om/get-shared owner :cast!)
             touched-docs (get-in app [:cust :touched-docs])
             ;; Not showing created for now, since we haven't been storing that until recently
-            created-docs (get-in app [:cust :created-docs])]
+            created-docs (get-in app [:cust :created-docs])
+            docs (take 100 (reverse (sort-by :last-updated-instant (filter :last-updated-instant touched-docs))))]
         (html
          [:div.menu-prompt {:class (str "menu-prompt-" "doc-viewer")}
           [:div.menu-header

  (:require-macros [frontend.utils :refer [html]])
  (:import [goog.ui IdGenerator]))

(defn doc-viewer [app owner]
  (reify
    om/IRender

(ns frontend.components.doc-viewer
  (:require [clojure.set :as set]
            [clojure.string :as str]
            [cljs-time.core :as time]
            [datascript :as d]
            [frontend.async :refer [put!]]
            [frontend.components.common :as common]
