From a780d972f1832f85916d3312f93d0dc70bc2c548 Mon Sep 17 00:00:00 2001
From: Joanthan Bernard <jbernard2@mmm.com>
Date: Tue, 16 Dec 2014 11:16:49 -0600
Subject: [PATCH] List actions now sorts its output alphabetically.

---
 project.properties                         | 6 +++---
 src/main/com/jdblabs/gtd/cli/GTDCLI.groovy | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/project.properties b/project.properties
index 87cf84a..163ab3c 100644
--- a/project.properties
+++ b/project.properties
@@ -1,8 +1,8 @@
-#Mon, 01 Dec 2014 12:36:42 -0600
+#Tue, 16 Dec 2014 10:49:37 -0600
 lib.local=true
 name=jdb-gtd
-version=1.12
+version=1.13
 nailgun.classpath.dir=/home/jdbernard/programs/nailgun/classpath
 executable.jar=true
 main.class=com.jdblabs.gtd.cli.GTDCLI
-build.number=1
+build.number=2
diff --git a/src/main/com/jdblabs/gtd/cli/GTDCLI.groovy b/src/main/com/jdblabs/gtd/cli/GTDCLI.groovy
index 89988e5..3509642 100644
--- a/src/main/com/jdblabs/gtd/cli/GTDCLI.groovy
+++ b/src/main/com/jdblabs/gtd/cli/GTDCLI.groovy
@@ -35,7 +35,7 @@ import static java.nio.file.StandardCopyOption.*
  * @org gtd.jdb-labs.com/cli/GTDCLI */
 public class GTDCLI {
 
-    public static final String VERSION = "1.12"
+    public static final String VERSION = "1.13"
     private static String EOL = System.getProperty("line.separator")
 
     /// We have a persistent instance when we are in the context of a Nailgun
@@ -626,7 +626,7 @@ public class GTDCLI {
         def printItems = { dir ->
             if (!dir.exists() || !dir.isDirectory()) return
             println "-- ${getRelativePath(gtdDirs.root, dir)} --"
-            dir.eachFile { file ->
+            dir.listFiles().sort { it.name }.each { file ->
                 if (!file.exists() || !file.isFile() || file.isHidden() ||
                     file.name.startsWith('.'))
                     return