diff --git a/src/modules/military-generator.ts b/src/modules/military-generator.ts index 929adc47..65fbb28f 100644 --- a/src/modules/military-generator.ts +++ b/src/modules/military-generator.ts @@ -405,7 +405,7 @@ class MilitaryModule { s: State, ): MilitaryRegiment[] => { if (!nodes.length) return []; - + nodes.sort((a, b) => a.a - b.a); // form regiments starting from cells with fewest troops nodes.sort((a, b) => a.a - b.a); // form regiments in cells with most troops const tree = quadtree( nodes,