Commit 8375bdb6 authored by Gergely Ujvari's avatar Gergely Ujvari

Sort annotation loading sequence

To avoid temporary "message not available" cards
parent 247c2e39
......@@ -188,7 +188,12 @@ class ViewerController
loaded = []
_loadAnnotationsFrom = (query, offset) ->
q = angular.extend({limit: 20, offset: offset}, query)
queryCore =
limit: 20
offset: offset
sort: 'created'
order: 'asc'
q = angular.extend(queryCore, query)
store.SearchResource.get q, (results) ->
total = results.total
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment