diff --git a/api/document/views.py b/api/document/views.py index 130ec07..4a8a6d8 100644 --- a/api/document/views.py +++ b/api/document/views.py @@ -66,7 +66,7 @@ def Gallery(request,collection_id=None,pagenumber=1): #let's only get the zotero objects that have pages #otherwise, no need for the gallery -- and it lards the gallery up - docs=ZoteroSource.objects.all().filter(~Q(page_connection=None)) + docs=ZoteroSource.objects.order_by().all().filter(~Q(page_connection=None)) other_collections=[] for collection_tuple in docs.values_list(