stabilize test script by sorting input files