aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/equalparts/cardbase/standalone
diff options
context:
space:
mode:
Diffstat (limited to 'src/eu/equalparts/cardbase/standalone')
-rw-r--r--src/eu/equalparts/cardbase/standalone/CardbaseCLI.java11
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();
}
/**