Author: Yaroslav Halchenko
Last-Update: 2012-01-23 15:58:17 -0500
Description: Sorting for better reproducibility

--- cmtk-3.2.2.orig/scripts/gen_manpages
+++ cmtk-3.2.2/scripts/gen_manpages
@@ -75,7 +75,7 @@ cmtk \- the Computational Morphometry To
 This helper script provides a unified access to all command line tools provided by CMTK.  Please specify CMTK's command to run and its options. See \fBcmtk-<command>(1)\fR manpage or output of \fBcmtk <command> --help\fR for <command> specific options
 .SH COMMANDS
 EOF
-/bin/ls $MANDIR/*.1 | grep -v -e 'cmtk\.1' | while read f; do
+/bin/ls $MANDIR/*.1 | grep -v -e 'cmtk\.1' | LC_ALL=C sort | while read f; do
 	descr="$(grep -a -A1 '.SH DESCRIPTION' $f| tail -n 1)"
 	cmd=${f%.*}
 	cmd=${cmd##*cmtk-}
