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
|
@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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user