Commit b7f34a37 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou Committed by Christos Stavrakakis
Browse files

ui: Fallback to image date if no sort metadata exists

while sorting images collection
parent 34987034
......@@ -1965,7 +1965,8 @@
comparator: function(img) {
return -img.get_sort_order("sortorder") || 0;
var date = new Date(img.get('created_at'));
return -img.get_sort_order("sortorder") || -date.getTime();
parse_meta: function(img) {
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