From: ivan Date: Fri, 31 Aug 2001 08:43:41 +0000 (+0000) Subject: > Order by City might be better X-Git-Tag: freeside_1_4_0pre11~398 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=4ec61507a7b255c3f5e8a573eca18c48ddaaa2c1;ds=sidebyside > Order by City might be better state, city, then number --- diff --git a/httemplate/browse/svc_acct_pop.cgi b/httemplate/browse/svc_acct_pop.cgi index 0e6937f6c..c58ce3333 100755 --- a/httemplate/browse/svc_acct_pop.cgi +++ b/httemplate/browse/svc_acct_pop.cgi @@ -1,5 +1,5 @@ <% -# +# use strict; use vars qw( $cgi $p $svc_acct_pop ); @@ -30,7 +30,9 @@ print $cgi->header( '-expires' => 'now' ), header('POP Listing', menubar( END foreach $svc_acct_pop ( sort { - $a->getfield('popnum') <=> $b->getfield('popnum') + #$a->getfield('popnum') <=> $b->getfield('popnum') + $a->state cmp $b->state || $a->city cmp $b->city + || $a->ac <=> $b->ac || $a->exch <=> $b->exch || $a->loc <=> $b->loc } qsearch('svc_acct_pop',{}) ) { my($hashref)=$svc_acct_pop->hashref; print <