mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-17 15:06:17 +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.push(thisZone);
|
||||||
}
|
}
|
||||||
listExistingZones.sort(GetSortOrder("name"));
|
var zoneSortProperty = "name";
|
||||||
|
var zoneSortOrder = getSortOrder(zoneSortProperty);
|
||||||
|
listExistingZones.sort(zoneSortOrder);
|
||||||
return listExistingZones;
|
return listExistingZones;
|
||||||
}
|
}
|
||||||
|
|
||||||
function GetSortOrder(sortProperty) {
|
function getSortOrder(sortProperty) {
|
||||||
return function(a, b) {
|
return function(a, b) {
|
||||||
if (a[sortProperty] > b[sortProperty]) {
|
if (a[sortProperty] > b[sortProperty]) {
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue