Added an array sorting implementation. Sorting the directory entries.
Directory index removal and other things.