Return step logs strictly in line order (#6999)