Sort the result of os.listdir to make the resutls deterministic