The Qur'an story used some foreshadowing when Abraham asked his son what he thought about the sacrifice and it turned out to be different from what we would expect.
The format of both stories was in chronological order. Both started from God and Allah telling Abraham to sacrifice his son(Isaac and Ishmael), and later leading to the almost sacrifices.