updated changes to directoryList sorting class