Between Yitro and Mishpatim is Vayechan, which contains the ten commandments, in the Torah Kedumah. If P had a predicament in Parshat Lech Lecha, in Vayechan, P created an earthquake.
The bold sections, in my view, are misplaced in our current Torah, to the extent that prominent scholars have suggested that the ten commandments are themselves an insertion. Incorrectly, in my eyes: I see very little wrong with this version of Vayechan. The extra commandment is no problem. It can be "compensated for" by counting the first two commandments, in the conventional count, as one.
In short, if movement of text is not part of one's "research paradigm," one can reach altogether wrong conclusions.