Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
FilterPropertySort sorter;
sorter = new FilterPropertySort("Title", FilterSortDirection.Descending);
// The filter method need the pagedata collection
FilterEventArgs eArgs = new FilterEventArgs(pageCol);
// Sort it
sorter.Filter(this, eArgs);
// the pageCol is now sorted
It does not look as good as your code, but it should work.
/Steve
FilterPropertySort sorter; sorter = new FilterPropertySort("Title",FilterSortDirection.Descending); pageCol.Sort(sorter);
Thanks ! Danie