mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 22:33:24 +00:00
Ship summary key for ship type is id
This commit is contained in:
@@ -102,7 +102,7 @@ export default class ShipyardPage extends Page {
|
||||
|
||||
this.state = {
|
||||
title: 'Coriolis EDCD Edition - Shipyard',
|
||||
shipPredicate: 'name',
|
||||
shipPredicate: 'id',
|
||||
shipDesc: true,
|
||||
shipSummaries: ShipyardPage.cachedShipSummaries,
|
||||
compare: {},
|
||||
@@ -276,7 +276,7 @@ export default class ShipyardPage extends Page {
|
||||
}
|
||||
|
||||
if (valA == valB) {
|
||||
if (a.name > b.name) {
|
||||
if (a.id > b.id) {
|
||||
return 1;
|
||||
} else {
|
||||
return -1;
|
||||
@@ -329,7 +329,7 @@ export default class ShipyardPage extends Page {
|
||||
<th className="le rgt"> </th>
|
||||
</tr>
|
||||
<tr className="main">
|
||||
<th className="sortable le rgt" onClick={sortShips('name')}>
|
||||
<th className="sortable le rgt" onClick={sortShips('id')}>
|
||||
{translate('ship')}
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user