mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-01-25 01:31:22 +01:00
Fix sorting being case-sensitive
This commit is contained in:
parent
9c4bcc100f
commit
bce498955f
@ -58,8 +58,8 @@ export default {
|
||||
return marker.type === "player" && (marker.name.includesCI(this.filter.search) || marker.playerUuid.includesCI(this.filter.search));
|
||||
}).sort((a, b) => {
|
||||
if (this.filter.order === "label") {
|
||||
let la = a.type === "player" ? a.name : a.label;
|
||||
let lb = b.type === "player" ? b.name : b.label;
|
||||
let la = (a.type === "player" ? a.name : a.label).toLowerCase();
|
||||
let lb = (b.type === "player" ? b.name : b.label).toLowerCase();
|
||||
if (la < lb) return -1;
|
||||
if (la > lb) return 1;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user