X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main.cgi;h=cfd99c8247bb6de679198ba56399ad59ab5921f5;hp=0a10c7ce1fa53d4dd102d0539bb12a2c4756497d;hb=57a1412bb70af3fdd7e3acd9e487c66260105776;hpb=ef2e9712fbb5b4b1c5a681530c202498204220d8 diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index 0a10c7ce1..cfd99c824 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -1,5 +1,5 @@ <% -# +# use vars qw( $cgi $custnum $action $cust_main $p1 @agents $agentnum $last $first $ss $company $address1 $address2 $city $zip @@ -183,7 +183,7 @@ $cust_main->country( $countrydefault ) unless $cust_main->country; $cust_main->state( $conf->config('statedefault') || 'CA' ) unless $cust_main->state || $cust_main->country ne 'US'; foreach ( sort { - ( $a->country eq $countrydefault ) <=> ( $b->country eq $countrydefault ) + ( $b->country eq $countrydefault ) <=> ( $a->country eq $countrydefault ) or $a->country cmp $b->country or $a->state cmp $b->state or $a->county cmp $b->county