mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 16:02:08 +02:00
Make the zones sort as case insensitive
Make the sort of the zone selector to be case insensitive.
This commit is contained in:
parent
e6d092aefe
commit
b7393b2398
1 changed files with 4 additions and 2 deletions
|
@ -2911,9 +2911,11 @@ function getExistingZoneList() {
|
|||
|
||||
function zoneSortOrder() {
|
||||
return function(a, b) {
|
||||
if (a.name > b.name) {
|
||||
var nameA = a.name.toUpperCase();
|
||||
var nameB = b.name.toUpperCase();
|
||||
if (nameA > nameB) {
|
||||
return 1;
|
||||
} else if (a.name < b.name) {
|
||||
} else if (nameA < nameB) {
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue