feat: add custom sorting for all major entities
Add sort_order column to pokemon, items, recipes, habitats, and configs Implement drag-and-drop reordering in the admin interface Update API endpoints and database queries to respect the new sort order
This commit is contained in:
@@ -92,7 +92,7 @@ const pokemonRows = computed<PokemonRow[]>(() => {
|
||||
timeOfDays: sortByOrder(row.timeOfDays, timeOfDays),
|
||||
weathers: sortByOrder(row.weathers, weathers),
|
||||
rarity: row.rarity,
|
||||
maps: [...row.maps].sort((a, b) => a.localeCompare(b))
|
||||
maps: [...row.maps]
|
||||
}));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user