fix bug with testing whether files are directories, which was causing the sorting params to be ignored
fix bug with testing whether files are directories, which was causing the sorting params to be ignored

movesmyers/directory_listing,movesmyers/directory_listing