Modified to add sorting of Cached Directories & Files