List actions now sorts its output alphabetically.

This commit is contained in:
Joanthan Bernard 2014-12-16 11:16:49 -06:00
parent 43f0930cf2
commit a780d972f1
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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