mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-19 08:18:05 +02:00
Minor code adjustments
Minor code adjustments
This commit is contained in:
parent
3a0c4e1477
commit
3023924cf1
1 changed files with 4 additions and 2 deletions
|
@ -2905,11 +2905,13 @@ function getExistingZoneList() {
|
|||
};
|
||||
listExistingZones.push(thisZone);
|
||||
}
|
||||
listExistingZones.sort(GetSortOrder("name"));
|
||||
var zoneSortProperty = "name";
|
||||
var zoneSortOrder = getSortOrder(zoneSortProperty);
|
||||
listExistingZones.sort(zoneSortOrder);
|
||||
return listExistingZones;
|
||||
}
|
||||
|
||||
function GetSortOrder(sortProperty) {
|
||||
function getSortOrder(sortProperty) {
|
||||
return function(a, b) {
|
||||
if (a[sortProperty] > b[sortProperty]) {
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue