--- /etc/autofs/auto.net 2007-02-08 16:28:46.000000000 -0300 +++ /etc/autofs/auto.net.correct 2009-03-12 20:18:25.710773259 -0200 @@ -21,7 +21,7 @@ # Newer distributions get this right SHOWMOUNT="/usr/sbin/showmount --no-headers -e $key" -$SHOWMOUNT | LC_ALL=C sort +0 | \ +$SHOWMOUNT | LC_ALL=C sort -k 1 | \ awk -v key="$key" -v opts="$opts" -- ' BEGIN { ORS=""; first=1 } { if (first) { print opts; first=0 }; print " \\\n\t" $1, key ":" $1 }