Fix mantis 2981

Read & write pilot loop data in the same order