Sort folders by date or by name