 Flow.Browser = (_) ->
   _docs = signals []
+
+  _sortedDocs = lift _docs, (docs) ->
+    sortBy docs, (doc) -> -doc.date().getTime()
+
   _hasDocs = lift _docs, (docs) -> docs.length > 0
 
   createDocView = ([ type, id, doc ]) ->

    purge = ->
      _.requestDeleteObject type, id, (error) ->
        if error
        else
          _docs.remove self



  link _.storeNotebook, storeNotebook

  docs: _sortedDocs
  hasDocs: _hasDocs
  loadNotebooks: loadNotebooks
