mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-05 15:52:55 +01:00
feat: class and type sorting
This commit is contained in:
1 parent
d6e37119a8
commit
ee1ecb83b7
3 files changed
+5
-2
No files matched your search
@@ -34,6 +34,9 @@ function Content() {
|
||||
const tanksOrdered = useMemo(() => {
|
||||
let list = Object.values(tanks.tanks);
|
||||
|
||||
list = list.sort((a, b) => a.tank!.tank_type - b.tank!.tank_type);
|
||||
list = list.sort((a, b) => a.tank!.tank_class - b.tank!.tank_class);
|
||||
list = list.sort((a, b) => a.tank!.nation - b.tank!.nation);
|
||||
list = list.sort((a, b) =>
|
||||
compareTiers(a.tank!.tier_catalog_id, b.tank!.tier_catalog_id),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user