Skip to content

Commit

Permalink
(#1006) Use proper locale comparison API for clientside category sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
Difegue committed Jun 30, 2024
1 parent e3dac79 commit 4e90214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ Index.loadCategories = function () {
(data) => {
// Sort by pinned + alpha
// Pinned categories are shown at the beginning
data.sort((b, a) => a.name > b.name);
data.sort((b, a) => b.name.localeCompare(a.name));
data.sort((a, b) => a.pinned < b.pinned);
let html = "";

Expand Down

0 comments on commit 4e90214

Please sign in to comment.