Ending with both Jack's and Miranda's loyalties
Before playing Miranda's loyalty mission, wait for Jack's mission to become available and play it first. After the mission when they are fighting, support Jack. Miranda's loyalty will be low. After that, play her loyalty mission to get it back.