Removed warning

Removed warning when sorting a directory with both files and
subdirectories.