I was hoping to use OrderBy on a SPFolderCollection object but after I include System.Linq, OrderBy still does not come up in intellisense.
According to the Documentation, SPFolderCollectionClass inherits from SPBaseCollection which uses IEnumerable. I thought this was all that I needed, am I missing something?
Most of the LINQ methods require an
IEnumerable<T>, use theEnumerable.Castmethod to convert it.So
x.Cast<SPFolder>().OrderBy(whatever).