mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-12-25 13:29:59 +00:00
Put "init" as the topmost item in the sort again
This commit is contained in:
parent
736ab81061
commit
d2f4766e51
@ -19,6 +19,8 @@ public class DataUtilities {
|
||||
entities.sort((a,b)->{
|
||||
String nameA = a == null ? "" : nullSafe(a.getName());
|
||||
String nameB = b == null ? "" : nullSafe(b.getName());
|
||||
if (nameA.equalsIgnoreCase("init")) return -1;
|
||||
if (nameB.equalsIgnoreCase("init")) return 1;
|
||||
return nameA.compareTo(nameB);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user