Im pretty sure the theory goes that arceus created mew, palkia, dialga, and giratina, and those four created all other pokemon.
The dexs could easily be wrong, as they have exaggerated things and told lies to many many young trainers. Another example is profs making kids do work for no paymen-
Anyway, Im pretty sure acording to most "family trees" if you will, arceus comes first.