mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Simplified sorting of QuestWorld
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user