Skip to content

Commit

Permalink
Fix sorting for "Picture Book"s
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-polk committed Jan 9, 2024
1 parent c62668e commit 6202aaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/connection/sorting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ export function doExpensiveClientSideSortingIfNeeded(
b.sortKey = getBookSortKey(t, orderingScheme);
});

if (languageForSorting === "none") languageForSorting = undefined;

const comparator = new Intl.Collator(
languageForSorting /* it's ok if this is missing */,
{ numeric: true } // will strip off leading 0's.
Expand Down

0 comments on commit 6202aaf

Please sign in to comment.