From c108a99e128c02d20930775222f6118a460f80b1 Mon Sep 17 00:00:00 2001 From: pacien Date: Thu, 24 Sep 2020 22:18:44 +0200 Subject: viewer/services/itemComparators: make the orders linear By using the item path as a tie-breaker. GitHub: closes #255 --- viewer/ldgallery-viewer.7.md | 3 ++- viewer/src/services/itemComparators.ts | 33 ++++++++++++++++++++++++++++----- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/viewer/ldgallery-viewer.7.md b/viewer/ldgallery-viewer.7.md index 9ac1512..6b31879 100644 --- a/viewer/ldgallery-viewer.7.md +++ b/viewer/ldgallery-viewer.7.md @@ -2,7 +2,7 @@ pagetitle: Viewer user manual - ldgallery title: LDGALLERY-VIEWER(7) ldgallery author: Pacien TRAN-GIRARD, Guillaume FOUET -date: 2020-09-19 (v2.0) +date: 2020-09-24 (v2.0) --- @@ -79,6 +79,7 @@ initialItemSort Possible values are "title_asc", "date_asc", "date_desc". Defaults to "title_asc". Titles are sorted using a human-friendly _natural sort order_ which treats multi-digit numbers atomically. + The item path is used as a tie-breaker for all the defined orders.