diff options
author | Eduardo Pedroni <e.pedroni91@gmail.com> | 2015-06-11 14:31:39 +0200 |
---|---|---|
committer | Eduardo Pedroni <e.pedroni91@gmail.com> | 2015-06-11 14:31:39 +0200 |
commit | 56dc0db523156c6ff77d9212983c51b531250733 (patch) | |
tree | 19abfcc68f555379ff7b37167d3f8f309657d2b3 /src/eu/equalparts/cardbase/standalone | |
parent | 4ee655bef4cdf9e62a1b247e77754441de806f22 (diff) |
Moved away from reflection for sorting, now looking into using a hashmap instead of a list
Diffstat (limited to 'src/eu/equalparts/cardbase/standalone')
-rw-r--r-- | src/eu/equalparts/cardbase/standalone/CardbaseCLI.java | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/eu/equalparts/cardbase/standalone/CardbaseCLI.java b/src/eu/equalparts/cardbase/standalone/CardbaseCLI.java index 108b753..f491f6c 100644 --- a/src/eu/equalparts/cardbase/standalone/CardbaseCLI.java +++ b/src/eu/equalparts/cardbase/standalone/CardbaseCLI.java @@ -416,16 +416,7 @@ public class CardbaseCLI { * @param args the ordering to sort by. */ public void sort(String[] args) { - if (args.length > 0) { - String fieldName = args[0]; - if (cardbase.sortBy(fieldName)) { - System.out.println("Cardbase sorted by " + fieldName); - } else { - System.out.println("Unknown field: " + fieldName); - } - } else { - System.out.println("Please enter the field to use for sorting."); - } + cardbase.sortByName(); } /** |