Open SlimeDog opened 5 years ago
This is a neat idea. However, what if someone would prefer some kind of logical grouping? For instance, if they had a group of survival worlds and a group of creative worlds. I imagine they would prefer those to show up together. As such, I have some ideas for tackling this and providing a way to satisfy both desires.
A variety of useful sorting schemes would be great. Alphabetical just makes them easier to find in the list (I have 23 worlds), and I would think the easiest to implement. Grouping is a whole other kettle of fish.
What is the current reasoning behind how worlds get sorted? It is so annoying having them mixed at random, even if you import them in a specific order. Even more so, if you try and edit the worlds.yml file to manually sort them, they reset back to the "random" order.
Since it's been raised again, count again my voice for alphanumeric sorting.
Another vote for alpha sort. This should include /mv list as well as the api for plugins like dynmap so that worlds are sorted there as well.
Ah yes, dynmap is also affected by this. Iirc you can fix it on the dynmap side by manually rearranging the generated web files, but again, still a pain. Please add alphabetical sort!
It might be as easy as adding a sort(compareByAlias) to getMVWorlds() with something like:
Collection<MultiverseWorld> compareByAlias = new Comparator<MultiverseWorld>() {
@Override
public int compare(MultiverseWorlds a, MultiverseWorld b) {
return a.getAlias().compareTo(b.getAlias());
}
};
Spigot 1.13.2 MV-Core 2.7.0-SNAPSHOT-b747
would be more user-friendly if it were