tax report fix sort
[freeside.git] / httemplate / search / report_tax.cgi
index 4f3ba1a..2e7bbcf 100755 (executable)
@@ -81,7 +81,7 @@ foreach my $r ( qsearch('cust_main_county', {}) ) {
 
 #ordering
 my @regions = map $regions{$_},
-              sort { ( $b eq $out cmp $a eq $out ) || ( $a cmp $b ) }
+              sort { ( ($b eq $out) cmp ($a eq $out) ) || ($a cmp $b) }
               keys %regions;
 
 push @regions, {