commit 8966fb6f6cb2ddb3cf4bdaf617d5bc27a14340a1
Author: Hannes Reinecke <hare@suse.de>
Date:   Mon Mar 31 12:48:32 2008 +0200

    Sort multipath devices by number
    
    dmsetup ls displays the devices in random order; we should really be
    sorting them to make the order more predictable.
    
    Signed-off-by: Hannes Reinecke <hare@suse.de>

diff --git a/multipath/multipath.init.suse b/multipath/multipath.init.suse
index da767fa..88ede2f 100755
--- a/multipath/multipath.init.suse
+++ b/multipath/multipath.init.suse
@@ -79,7 +79,7 @@ case "$1" in
 	$PROGRAM -v 0
 
 	# Create all partitions which might have been missing
-	for map in $(/sbin/dmsetup ls --target multipath | sed '/No devices/d' | sort +1 | sed -n 's/.*, \(.*\))/\1/p' ) ; do
+	for map in $(/sbin/dmsetup ls --target multipath | sed '/No devices/d' | sort -n +2 | sed -n 's/.*, \(.*\))/\1/p' ) ; do
 	    wait=5
 	    while [ $wait -gt 0 ] ; do
 		[ -e /dev/dm-$map ] && break
