Try our conversational search powered by Generative AI!

sorting pages based on a property

Vote:
 
is there any way to sort pages from a GetChildren statement based on a property on these pages?
#17532
Jun 08, 2006 14:38
Vote:
 
Indeed. PageDataCollection pdc = EPiServer.Global.EPDataFactory.GetChildren(CurrentPage.PageLink); FilterPropertySort sort = new FilterPropertySort("MainBody", FilterSortDirection.Ascending); sort.Filter(null, new FilterEventArgs(pdc)); /HAXEN
#18361
Jun 14, 2006 13:58
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.