A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
using EPiServer.Filters;
PageTree myPageTree; // assumes id="myPageTree" in markup
FilterPropertySort propertySort = new FilterPropertySort("PageCreated", FilterSortDirection.Asc);
myPageTree.Filter += new FilterEventHandler(propertySort.Filter);
A clean solution would be to create a new webcontrol and let it derive from PageTree and
override the CreateSortFilters() method to implement multiple SortBy (possibly separated by , ).
Regards,
Johan Olofsson