projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f105a08
)
sort locations in dropdown, RT#10766
author
ivan
<ivan>
Sat, 4 Dec 2010 03:52:32 +0000
(
03:52
+0000)
committer
ivan
<ivan>
Sat, 4 Dec 2010 03:52:32 +0000
(
03:52
+0000)
httemplate/elements/tr-select-cust_location.html
patch
|
blob
|
history
diff --git
a/httemplate/elements/tr-select-cust_location.html
b/httemplate/elements/tr-select-cust_location.html
index
d44b1c4
..
f2b267a
100644
(file)
--- 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) )