diff options
author | ivan <ivan> | 2010-12-04 03:52:33 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-12-04 03:52:33 +0000 |
commit | 95ec9396c6fdd5d5f9e75ee30dc78f2726f509a9 (patch) | |
tree | 4960d1b9aba1b919db32f43c22cd085ecddaf918 /httemplate | |
parent | d559c300cf11ffe5c2a0a4325588dd3ca934c535 (diff) |
sort locations in dropdown, RT#10766
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/elements/tr-select-cust_location.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/httemplate/elements/tr-select-cust_location.html b/httemplate/elements/tr-select-cust_location.html index d44b1c489..f2b267a8b 100644 --- a/httemplate/elements/tr-select-cust_location.html +++ b/httemplate/elements/tr-select-cust_location.html @@ -224,10 +224,10 @@ if ( $locationnum && $locationnum != -1 ) { } my $location_sort = sub { - $a->country cmp $b->country - or $a->city cmp $b->city - or $a->address1 cmp $b->address1 - or $a->address2 cmp $b->address2 + $a->country cmp $b->country + or lc($a->city) cmp lc($b->city) + or lc($a->address1) cmp lc($b->address1) + or lc($a->address2) cmp lc($b->address2) }; my $disabled = ( $locationnum == -1 || ($editable && $locationnum) ) |