--- autofs-4.1.4/samples/auto.net.orig 2005-11-03 19:15:10.000000000 -0500 +++ autofs-4.1.4/samples/auto.net 2005-11-03 19:15:19.000000000 -0500 @@ -37,7 +37,7 @@ done # Newer distributions get this right SHOWMOUNT="$SMNT --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 }