This commit is contained in:
Jesse Boyd 2017-03-13 18:07:48 +11:00
parent ad11ad3472
commit 0b6d2d3dd6
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -185,8 +185,8 @@ public class ListCmd extends SubCommand {
Collections.sort(plots, new Comparator<Plot>() { Collections.sort(plots, new Comparator<Plot>() {
@Override @Override
public int compare(Plot a, Plot b) { public int compare(Plot a, Plot b) {
String va = (String) a.getFlags().get(Flags.DONE); String va = "" + a.getFlags().get(Flags.DONE);
String vb = (String) b.getFlags().get(Flags.DONE); String vb = "" + b.getFlags().get(Flags.DONE);
if (MathMan.isInteger(va)) { if (MathMan.isInteger(va)) {
if (MathMan.isInteger(vb)) { if (MathMan.isInteger(vb)) {
return Integer.parseInt(vb) - Integer.parseInt(va); return Integer.parseInt(vb) - Integer.parseInt(va);