Skip to content

Commit 37beff3

Browse files
committed
Fix order by mod name being case sensitive
1 parent 46b732c commit 37beff3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/lib/store/modFiltersStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface Filter {
2323
}
2424

2525
export const orderByOptions: OrderBy[] = [
26-
{ id: 'name', func: (mod: PartialMod) => mod.name.trim() },
26+
{ id: 'name', func: (mod: PartialMod) => mod.name.trim().toLowerCase() },
2727
{ id: 'last-updated', func: (mod: PartialMod) => 'last_version_date' in mod ? Date.now() - Date.parse(mod.last_version_date) : 0 },
2828
{ id: 'popularity', func: (mod: PartialMod) => 'popularity' in mod ? -mod.popularity : 0 },
2929
{ id: 'hotness', func: (mod: PartialMod) => 'hotness' in mod ? -mod.hotness : 0 },

0 commit comments

Comments
 (0)