Sorting folders first.

Resolves #49.