summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/gendata.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/gendata.js b/tools/gendata.js
index 11623b0..ba32d49 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -138,7 +138,7 @@ function defloc(region, stronghold, type, name) {
function defway(type, list) {
let ix = ways.length
- list = list.map(name=>locmap[name]).sort((a,b)=>a-b)
+ list = list.map(name=>locmap[name]).sort(cmpnum)
ways.push({type, locales: list})
for (let from of list) {
for (let to of list) {
@@ -294,7 +294,7 @@ trackway("Velikaya River, Velikiye Luki")
let seaports = [
"Riga", "Pernau", "Leal", "Reval", "Narwia", "Luga", "Koporye", "Neva"
-].map(name => locmap[name]).sort((a,b)=>a-b)
+].map(name => locmap[name]).sort(cmpnum)
function dumplist(name, list) {
print(name + ":[")
@@ -318,7 +318,7 @@ locales.forEach(loc => {
})
function seats(list) {
- return list.split(", ").map(name => locmap[name]).sort((a,b)=>a-b)
+ return list.split(", ").map(name => locmap[name]).sort(cmpnum)
}
let lords = [