From 85b0e722d2c7789b1d3d736b21f362cf590dddd9 Mon Sep 17 00:00:00 2001 From: SebastianMC <23032356+SebastianMC@users.noreply.github.com> Date: Tue, 29 Aug 2023 00:07:45 +0200 Subject: [PATCH] Adjustment of comparator by bookmark order to support multi-level sorting --- src/custom-sort/custom-sort.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/custom-sort/custom-sort.ts b/src/custom-sort/custom-sort.ts index 7cd98b9..5a4a5f6 100644 --- a/src/custom-sort/custom-sort.ts +++ b/src/custom-sort/custom-sort.ts @@ -114,8 +114,8 @@ export const sorterByBookmarkOrder:(reverseOrder?: boolean, trueAlphabetical?: b // Item with bookmark order goes before the w/o bookmark info if (a.bookmarkedIdx) return -1 if (b.bookmarkedIdx) return 1 - // Fallback -> requested sort by bookmark order, yet none of two items contain it, use alphabetical by name - return collatorCompareFn(a.sortString, b.sortString) + + return EQUAL_OR_UNCOMPARABLE } }