sort the output of test script.