gw2e-static-data 0.5.12 → 0.5.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1453,10 +1453,16 @@ var GATHERING_NODES = [{
|
|
|
1453
1453
|
var GATHERING_NODES_OPTIMIZED = JSON.parse(JSON.stringify(GATHERING_NODES));
|
|
1454
1454
|
|
|
1455
1455
|
GATHERING_NODES_OPTIMIZED.sort(function (a, b) {
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1456
|
+
return a.region.localeCompare(b.region) || a.zone.localeCompare(b.zone);
|
|
1457
|
+
});
|
|
1458
|
+
|
|
1459
|
+
var REGION_ZONE_COUNT = GATHERING_NODES_OPTIMIZED.reduce(function (counts, item) {
|
|
1460
|
+
counts[item.region] = (counts[item.region] || 0) + 1;
|
|
1461
|
+
return counts;
|
|
1462
|
+
}, {});
|
|
1463
|
+
|
|
1464
|
+
GATHERING_NODES_OPTIMIZED.sort(function (a, b) {
|
|
1465
|
+
return (REGION_ZONE_COUNT[b.region] || 0) - (REGION_ZONE_COUNT[a.region] || 0) || a.region.localeCompare(b.region) || a.zone.localeCompare(b.zone);
|
|
1460
1466
|
});
|
|
1461
1467
|
|
|
1462
1468
|
GATHERING_NODES_OPTIMIZED.forEach(function (item, index) {
|