Added sorting of list, first folders and last files.
Changed stupid way to get the parent path. Shame on me.