Skip to content

Commit bce4989

Browse files
committed
Fix sorting being case-sensitive
1 parent 9c4bcc1 commit bce4989

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BlueMapCommon/webapp/src/components/Menu/MarkerSetMenu.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export default {
5858
return marker.type === "player" && (marker.name.includesCI(this.filter.search) || marker.playerUuid.includesCI(this.filter.search));
5959
}).sort((a, b) => {
6060
if (this.filter.order === "label") {
61-
let la = a.type === "player" ? a.name : a.label;
62-
let lb = b.type === "player" ? b.name : b.label;
61+
let la = (a.type === "player" ? a.name : a.label).toLowerCase();
62+
let lb = (b.type === "player" ? b.name : b.label).toLowerCase();
6363
if (la < lb) return -1;
6464
if (la > lb) return 1;
6565
return 0;

0 commit comments

Comments
 (0)