It all starts with Ocarina of Time when Link takes out the Master Sword and makes two timelines. After Link destroys Ganondorf in the adult timeline he returns to the past. Then Ganondorf with the Triforce of Power escapes with no Link the Goddesses flood Hyrule which gos to Wind Waker, Phantom Hourglass, and Minish Cap. For the kid timeline Ganondorf never got sent to the jail the Master Sword sent him to, instead the sages try to kill him for something else. That leads to the Twilight Princess. After that is A Link to the Past, linken Awakening, and then the other 2d storyless games.