There is no chronological order in the Torah
There is no chronological order in the Torah is an expression used by many Bible commentators when they encounter events which are out of chronological order. In rabbinic analysis, the issue of chronological order is related to the issue of semichut parshiyot.Examples
The commandments in Leviticus 25 are stated as being given to Moses "on Mount Sinai", seemingly earlier in time than the ritual commandments of Leviticus chapters 1–24. Ibn Ezra explains that Leviticus 25 was indeed given before the ritual commandments, but was recorded later due to its thematic connection to the passages around it. In contrast, Nachmanides asserts that the passage is in chronological order, as only at this point did Moses relay to the people the commands he had previously been given on Mount Sinai.