feat: sorting by he shell penetratoin

This commit is contained in:
TrèsAbhi committed 2025-07-27 20:31:21 -05:00
1 parent 0e6b0087ce
commit 17755641a1
5 files changed
+16

No files matched your search

@@ -238,6 +238,16 @@ export const TankSearch = memo<TankSearchProps>(
);
break;
case 'fire.tertiaryPenetration':
sorted = filtered.sort(
(a, b) =>
(a.turrets.at(-1)!.guns.at(-1)!.gun_type!.value.base.shells[2]
?.penetration.near ?? 0) -
(b.turrets.at(-1)!.guns.at(-1)!.gun_type!.value.base.shells[2]
?.penetration.near ?? 0),
);
break;
case 'fire.damage':
sorted = filtered.sort(
(a, b) =>