Skip to content

Commit

Permalink
Merge branch 'minmatarfleet:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
beautifulmim authored Sep 23, 2024
2 parents d6e0a97 + bad4806 commit f3e79f6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/app/src/pages/intel/moons/[system_name].astro
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ try {
name: planet.name,
type_id: planet.type_id,
scanned: planet_moons_ui.reduce((c, v) => c + (v.scanned ? 1 : 0), 0),
moons: planet_moons_ui,
moons: planet_moons_ui.sort((a, b) => {
let numA = parseInt(a.name.split("Moon ")[1]);
let numB = parseInt(b.name.split("Moon ")[1]);
return numA - numB;
}),
}
})
} catch (error) {
Expand Down

0 comments on commit f3e79f6

Please sign in to comment.