Pass sortDirectoriesFirst to directoryContents nodes.

This is a fix for #9206.
Merge pull request #9223 from adobe/dangoor/9206-sort-order

Pass sortDirectoriesFirst to directoryContents nodes.