From 56dc0db523156c6ff77d9212983c51b531250733 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Thu, 11 Jun 2015 14:31:39 +0200 Subject: Moved away from reflection for sorting, now looking into using a hashmap instead of a list --- src/eu/equalparts/cardbase/standalone/CardbaseCLI.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/eu/equalparts/cardbase/standalone') 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(); } /** -- cgit v1.2.3