gw2e-static-data 0.5.13 → 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.
@@ -1456,6 +1456,15 @@ GATHERING_NODES_OPTIMIZED.sort(function (a, b) {
1456
1456
  return a.region.localeCompare(b.region) || a.zone.localeCompare(b.zone);
1457
1457
  });
1458
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);
1466
+ });
1467
+
1459
1468
  GATHERING_NODES_OPTIMIZED.forEach(function (item, index) {
1460
1469
  item.optimal = index;
1461
1470
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gw2e-static-data",
3
- "version": "0.5.13",
3
+ "version": "0.5.14",
4
4
  "description": "All the static data used in gw2efficiency and it's services",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {