<%
-#<!-- $Id: cust_main.cgi,v 1.11 2001-10-30 15:41:00 ivan Exp $ -->
+#<!-- $Id: cust_main.cgi,v 1.12 2001-10-30 15:42:33 ivan Exp $ -->
use vars qw( $cgi $custnum $action $cust_main $p1 @agents $agentnum
$last $first $ss $company $address1 $address2 $city $zip
$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