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 @Override
public int compareTo(QuestWorld other) { public int compareTo(QuestWorld other) {
if (null == other) { if (null == other)
return 1; return 1;
} if (this.name == null)
if (name == other.name) { return -1; // dummy, no format!
return 0;
}
if (null == name) {
return -1;
}
return name.compareTo(other.name); return name.compareTo(other.name);
} }