Aucune planète sous contrôle de votre équipe.
`; + } + + const sorted = [...rows]; + const mult = _planetSortDir === "asc" ? 1 : -1; + sorted.sort((a, b) => { + if (_planetSortCol === 0) return mult * a.name.localeCompare(b.name, "fr"); + return mult * (a.income - b.income); + }); + + const tableRows = sorted + .map(({ name, income }) => + `Aucun joueur actif
`; + return; + } + + const rows = Array.from({ length: maxRows }, (_, i) => { + const b = blue[i] ? `| RΓ©sistance (${blue.length}) | +Premier Ordre (${red.length}) | +
|---|