From 25a9af7212d757a53258990668620157c8ebe2e5 Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 25 Sep 2020 09:22:44 +0200 Subject: viewer/services/itemComparators: set default item sort order to date_asc It's the most reasonable default that doesn't break the order of sequence of photos. --- viewer/src/services/itemComparators.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'viewer/src/services/itemComparators.ts') diff --git a/viewer/src/services/itemComparators.ts b/viewer/src/services/itemComparators.ts index ab1036d..82757ca 100644 --- a/viewer/src/services/itemComparators.ts +++ b/viewer/src/services/itemComparators.ts @@ -41,7 +41,7 @@ export default class ItemComparators { }, ]; - static readonly DEFAULT = ItemComparators.ITEM_SORTS[0].fn; + static readonly DEFAULT = ItemComparators.ITEM_SORTS[1].fn; static sortByPathAsc(left: Gallery.Item, right: Gallery.Item): number { return left.path.localeCompare(right.path, undefined, { -- cgit v1.2.3