Sort the tool output before comparing