aboutsummaryrefslogtreecommitdiff
path: root/viewer/src
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src')
-rw-r--r--viewer/src/services/itemComparators.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/viewer/src/services/itemComparators.ts b/viewer/src/services/itemComparators.ts
index 380c66a..6a7c81c 100644
--- a/viewer/src/services/itemComparators.ts
+++ b/viewer/src/services/itemComparators.ts
@@ -31,7 +31,11 @@ export default class ItemComparators {
31 ]; 31 ];
32 32
33 static sortByNameAsc(left: Gallery.Item, right: Gallery.Item): number { 33 static sortByNameAsc(left: Gallery.Item, right: Gallery.Item): number {
34 return left.title.localeCompare(right.title); 34 return left.title.localeCompare(right.title, undefined, {
35 sensitivity: "base",
36 ignorePunctuation: true,
37 numeric: true,
38 });
35 } 39 }
36 40
37 static sortByDateDesc(left: Gallery.Item, right: Gallery.Item): number { 41 static sortByDateDesc(left: Gallery.Item, right: Gallery.Item): number {