sort files to be deterministic