diff --git a/mxmount b/mxmount index 8c7ded2..0f29f30 100755 --- a/mxmount +++ b/mxmount @@ -62,7 +62,7 @@ system("exportfs -ra"); sub add_data0_if_not_present { my $allmp = $D{$hostname}; - foreach my $mp (sort { $a->{mountpoint} <=> $b->{mountpoint} } @$allmp ) { + foreach my $mp (sort { $a->{mountpoint} cmp $b->{mountpoint} } @$allmp ) { if ($mp->{label} eq "data0") { return; }