Sort dotfiles and dotfolders first

This pull request adds a preference for dotfiles and dotfolders to be sorted first in the displayed list. This is in contrast to the currently hardcoded method of intermixing or "last sorting" the dotfiles/folders.

Please note that 6d490e2 is actually reverted by 39ff3d9.