Skip to content

Commit

Permalink
Use superior localeCompare for sorting plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBurrBurr committed Jan 19, 2025
1 parent 9cd1203 commit 157c5a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/ASF/Plugins.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@
this.plugins.sort((a, b) => {
const nameA = a.Name.toLowerCase();
const nameB = b.Name.toLowerCase();
if (nameA < nameB) return -1;
if (nameA > nameB) return 1;
return 0;
return nameA.localeCompare(nameB);
});
this.plugins.forEach((plugin, i) => {
Expand Down

0 comments on commit 157c5a9

Please sign in to comment.