# HG changeset patch # User Christophe Lincoln # Date 1487335740 -3600 # Node ID c133447f0d654ac661785af5b6f4712cdc6f0f24 # Parent 5b8fd5ab20b7f5e33a8f58a266d8e694e6e819c2 fic blog archive sorting diff -r 5b8fd5ab20b7 -r c133447f0d65 plugins/blog/blog.cgi --- a/plugins/blog/blog.cgi Fri Feb 17 13:39:44 2017 +0100 +++ b/plugins/blog/blog.cgi Fri Feb 17 13:49:00 2017 +0100 @@ -220,7 +220,7 @@ blog_tools echo "

Blog archives

" echo "
"
-			for p in $(ls $blog)
+			for p in $(ls $blog | sort -nr)
 			do
 				. ${blog}/${p}/post.conf
 				echo "\