aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example/config.json2
-rw-r--r--viewer/ldgallery-viewer.7.md2
-rw-r--r--viewer/src/services/itemComparators.ts2
3 files changed, 3 insertions, 3 deletions
diff --git a/example/config.json b/example/config.json
index cd08b25..2454113 100644
--- a/example/config.json
+++ b/example/config.json
@@ -1,6 +1,6 @@
1{ 1{
2 "galleryRoot": "out/", 2 "galleryRoot": "out/",
3 "galleryIndex": "index.json", 3 "galleryIndex": "index.json",
4 "initialItemSort": "date_desc", 4 "initialItemSort": "date_asc",
5 "initialTagDisplayLimit": 10 5 "initialTagDisplayLimit": 10
6} 6}
diff --git a/viewer/ldgallery-viewer.7.md b/viewer/ldgallery-viewer.7.md
index 6b31879..96070dc 100644
--- a/viewer/ldgallery-viewer.7.md
+++ b/viewer/ldgallery-viewer.7.md
@@ -77,7 +77,7 @@ galleryIndex
77initialItemSort 77initialItemSort
78: Order in which gallery items are originally to be displayed. 78: Order in which gallery items are originally to be displayed.
79 Possible values are "title_asc", "date_asc", "date_desc". 79 Possible values are "title_asc", "date_asc", "date_desc".
80 Defaults to "title_asc". 80 Defaults to "date_asc".
81 Titles are sorted using a human-friendly _natural sort order_ which treats multi-digit numbers atomically. 81 Titles are sorted using a human-friendly _natural sort order_ which treats multi-digit numbers atomically.
82 The item path is used as a tie-breaker for all the defined orders. 82 The item path is used as a tie-breaker for all the defined orders.
83 83
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, {