Attempt to match output file order to input file order.