From cc3d0b60d3a3aa681327d68b7aa69121756a4c53 Mon Sep 17 00:00:00 2001 From: "Lynn \"Zhorken\" Vaughan" Date: Thu, 7 Jun 2012 01:59:26 -0400 Subject: [PATCH] Simplify the explanation of species order. --- scripts/set_pokemon_order_columns.sql | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/scripts/set_pokemon_order_columns.sql b/scripts/set_pokemon_order_columns.sql index a2756e6..61663ba 100644 --- a/scripts/set_pokemon_order_columns.sql +++ b/scripts/set_pokemon_order_columns.sql @@ -1,13 +1,10 @@ /* Pokémon species order: National dex order, except that families are grouped -together around whichever member has the lowest National ID, and then ordered -by evolutionary stage. +together around whichever member has the lowest National ID, with babies first. -pokemon_species.id happens to match National ID, and it so happens that the -only time Pokémon are out of evolutionary order if you sort by Nat'l ID is when -they're pre-evos added to an already-existing family, which are always babies. -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.) +Technically, the idea is to sort each evolutionary tree topologically, but +National ID with babies first does the right thing. The id column happens to +match Nat'l order, and the evolutionary chain IDs are in the right order too. */ UPDATE pokemon_species ps