We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 310a2e5 commit 9c4bcc1Copy full SHA for 9c4bcc1
BlueMapCommon/webapp/src/components/Menu/MarkerSetMenu.vue
@@ -58,8 +58,10 @@ export default {
58
return marker.type === "player" && (marker.name.includesCI(this.filter.search) || marker.playerUuid.includesCI(this.filter.search));
59
}).sort((a, b) => {
60
if (this.filter.order === "label") {
61
- if (a.label < b.label) return -1;
62
- if (a.label > b.label) return 1;
+ let la = a.type === "player" ? a.name : a.label;
+ let lb = b.type === "player" ? b.name : b.label;
63
+ if (la < lb) return -1;
64
+ if (la > lb) return 1;
65
return 0;
66
}
67
if (this.filter.order === "distance") {
0 commit comments