sort filenames and dirnames while walking so order of manifest is deterministic, and can be tested