Put directories first when sorting torrent content by name

Closes #1594.
Merge pull request #2057 from pmzqla/sort-content

Put directories first when sorting torrent content by name