aboutsummaryrefslogtreecommitdiff
path: root/viewer/src
diff options
context:
space:
mode:
authorpacien2020-09-25 09:22:44 +0200
committerpacien2020-09-25 09:22:44 +0200
commit25a9af7212d757a53258990668620157c8ebe2e5 (patch)
tree4a51a6201b2e4c55056b0321d04cb4bd7d678935 /viewer/src
parentc108a99e128c02d20930775222f6118a460f80b1 (diff)
downloadldgallery-25a9af7212d757a53258990668620157c8ebe2e5.tar.gz
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.
Diffstat (limited to 'viewer/src')
-rw-r--r--viewer/src/services/itemComparators.ts2
1 files changed, 1 insertions, 1 deletions
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 {
41 }, 41 },
42 ]; 42 ];
43 43
44 static readonly DEFAULT = ItemComparators.ITEM_SORTS[0].fn; 44 static readonly DEFAULT = ItemComparators.ITEM_SORTS[1].fn;
45 45
46 static sortByPathAsc(left: Gallery.Item, right: Gallery.Item): number { 46 static sortByPathAsc(left: Gallery.Item, right: Gallery.Item): number {
47 return left.path.localeCompare(right.path, undefined, { 47 return left.path.localeCompare(right.path, undefined, {