order the output for diff