Simplified sorting of QuestWorld

This commit is contained in:
leriomaggio
2021-07-04 18:31:29 +01:00
parent 9d80ae2d5c
commit a2e97700df

View File

@@ -231,15 +231,10 @@ public class QuestWorld implements Comparable<QuestWorld>{
*/
@Override
public int compareTo(QuestWorld other) {
if (null == other) {
if (null == other)
return 1;
}
if (name == other.name) {
return 0;
}
if (null == name) {
return -1;
}
if (this.name == null)
return -1; // dummy, no format!
return name.compareTo(other.name);
}