Sort output by filename