mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Simplify the explanation of species order.
This commit is contained in:
parent
b30974cd43
commit
cc3d0b60d3
1 changed files with 4 additions and 7 deletions
|
@ -1,13 +1,10 @@
|
||||||
/*
|
/*
|
||||||
Pokémon species order: National dex order, except that families are grouped
|
Pokémon species order: National dex order, except that families are grouped
|
||||||
together around whichever member has the lowest National ID, and then ordered
|
together around whichever member has the lowest National ID, with babies first.
|
||||||
by evolutionary stage.
|
|
||||||
|
|
||||||
pokemon_species.id happens to match National ID, and it so happens that the
|
Technically, the idea is to sort each evolutionary tree topologically, but
|
||||||
only time Pokémon are out of evolutionary order if you sort by Nat'l ID is when
|
National ID with babies first does the right thing. The id column happens to
|
||||||
they're pre-evos added to an already-existing family, which are always babies.
|
match Nat'l order, and the evolutionary chain IDs are in the right order too.
|
||||||
So sort babies first, and then the rest of the family in Nat'l order. (Evo
|
|
||||||
chain IDs happen to already be in the right order, too.)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
UPDATE pokemon_species ps
|
UPDATE pokemon_species ps
|
||||||
|
|
Loading…
Reference in a new issue