Sorting of parking on load
This commit is contained in:
parent
300d243ef8
commit
0f9f95c09d
@ -106,7 +106,7 @@ exports.readGroundnetXML = function (fDir, icao, force) {
|
||||
p => ({index: Number(p.attrs.index), name: String(p.attrs.name), number: String(p.attrs.number), type: String(p.attrs.type)}
|
||||
)).sort((p1, p2) => {
|
||||
if (p1.name === p2.name) {
|
||||
return p1.number - p2.number
|
||||
return p1.number?p1.number.localeCompare(p2.number):-1;
|
||||
} else {
|
||||
return p1.name.localeCompare(p2.name)
|
||||
}}));
|
||||
|
Loading…
Reference in New Issue
Block a user