sort diff output