added method for sorting current directory by files and folders