Fix ordering
authorJamie Cameron <jcameron@webmin.com>
Tue, 28 Jun 2011 20:06:53 +0000 (16:06 -0400)
committerJamie Cameron <jcameron@webmin.com>
Tue, 28 Jun 2011 20:06:53 +0000 (16:06 -0400)
net/edit_bifc.cgi

index 6b1a469..00f576d 100755 (executable)
@@ -277,7 +277,8 @@ if (($in{'new'} && $in{'virtual'} eq "" && !$in{'bridge'}) ||
 
 # Real interface for bridge
 if ($in{'bridge'} || $b && $b->{'bridge'}) {
-       @ethboot = map { $_->{'fullname'} }
+       @ethboot = sort { $a cmp $b }
+                    map { $_->{'fullname'} }
                       grep { $_->{'fullname'} =~ /^eth(\d+)$/ } @boot;
        print &ui_table_row($text{'bifc_bridgeto'},
                &ui_select("bridgeto", $b->{'bridgeto'}, \@ethboot, 1, 0,