From 57a1412bb70af3fdd7e3acd9e487c66260105776 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 30 Oct 2001 15:42:33 +0000 Subject: [PATCH] put default country up top --- httemplate/edit/cust_main.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.11.0