fix: Spells are now sorted alphabetically by their names, instead of first being sorted by modid
This commit is contained in:
@@ -20,8 +20,7 @@ public interface ISpellSortable {
|
||||
|
||||
TIER("tier", Comparator.naturalOrder()),
|
||||
ELEMENT("element", Comparator.comparing(Spell::getElement).thenComparing(Spell::getTier)),
|
||||
ALPHABETICAL("alphabetical", Comparator.comparing(Spell::getUnlocalisedName));
|
||||
|
||||
ALPHABETICAL("alphabetical", Comparator.comparing(s -> s.getRegistryName().getPath().toString()));
|
||||
public String name;
|
||||
public Comparator<? super Spell> comparator;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user