Merge pull request #1746 Adding sorting to list_dir implementation to improve Rosetta result stability