From: Francois Fleuret Date: Tue, 16 Mar 2010 21:50:48 +0000 (+0100) Subject: Sort the directories. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=8f74c943f6e0119233ae60d3625db42a394ab95f;p=scripts.git Sort the directories. --- diff --git a/dirtohtml.sh b/dirtohtml.sh index fe6532f..82fc1ba 100755 --- a/dirtohtml.sh +++ b/dirtohtml.sh @@ -47,7 +47,7 @@ echo echo "
"
 
-for d in $(find . -maxdepth 1 -type d -name "[^.]?*"); do
+for d in $(find . -maxdepth 1 -type d -name "[^.]?*" | sort); do
     echo "${d}"
 
     # most_recent=$(find ${d} -type f -exec stat --printf="%Y %n\n" '{}' \; | sort | tail -1 | awk '{print $4}')