Added ability to sort dotfiles and dotfolders first

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 "last sorting" the dotfiles/folders.