Adjustment of comparator by bookmark order to support multi-level sorting
This commit is contained in:
parent
726b3089b7
commit
85b0e722d2
|
@ -114,8 +114,8 @@ export const sorterByBookmarkOrder:(reverseOrder?: boolean, trueAlphabetical?: b
|
||||||
// Item with bookmark order goes before the w/o bookmark info
|
// Item with bookmark order goes before the w/o bookmark info
|
||||||
if (a.bookmarkedIdx) return -1
|
if (a.bookmarkedIdx) return -1
|
||||||
if (b.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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue