mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-05 04:28:10 +00:00
cargo count sorting fix
This commit is contained in:
@@ -227,10 +227,10 @@ export default defineComponent({
|
|||||||
|
|
||||||
case 'cargoCount':
|
case 'cargoCount':
|
||||||
return (
|
return (
|
||||||
(!isTractionUnit(row1.vehicle) ? Math.sign(row1.vehicle.cargoTypes.length || -1) : -1) -
|
Math.sign(
|
||||||
(!isTractionUnit(row2.vehicle)
|
(!isTractionUnit(row1.vehicle) ? row1.vehicle.cargoTypes.length || -1 : -1) -
|
||||||
? (row2.vehicle.cargoTypes.length || -1) * direction
|
(!isTractionUnit(row2.vehicle) ? row2.vehicle.cargoTypes.length || -1 : -1)
|
||||||
: -1)
|
) * direction
|
||||||
);
|
);
|
||||||
|
|
||||||
case 'coldStart':
|
case 'coldStart':
|
||||||
|
|||||||
Reference in New Issue
Block a user