Try our conversational search powered by Generative AI!
AI OnAI Off
Not sure, but maybe you could use Linq and first Cast the Directories and the just do a Reverse?
directory.Directories.Cast<EPiServer.Web.Hosting.UnifiedDirectory>().Reverse()
Hi!
I have a method that lists all directories in a given folder... using foreach:
I would like to be able to reverse the order (they are now automatically listed in alphabetic order - the way they are ordered in the filemanager)... Is this possible in some kind of easy way to reverse the order (descending - with a UnifiedDirectory)?