cargo count sorting fix

This commit is contained in:
2024-04-06 16:08:05 +02:00
parent 90e78e5ac5
commit b14c7a9502
+4 -4
View File
@@ -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':