This topic is one of those things that do not have a more correct answer, and it is the beauty of all that!.
If we do the leg extensions before the compound we can accumulate a little more fatigue and maybe alter the performance a bit, but doing it before gives a better chance of reaching that shortened range, that the more work we do, the more it will cost us to move in that. rank.
Doing the extensions after the compound is just as good, it will cost us much more to reach the shortening range, finally do it as you feel more comfortable.