new FilterPropertySort(“PageName”, FilterSortDirection.Descending).Filter(children);
Tags: EPiServer CMS 5, filter, pagedatacollection, sort
-
Dear Erik,
Using the above said method i got a PageDatacollection is sorted order (sorted with PageName Property). But in the sorted PDC i need to apply another sort Using Pagename. Suppose if Page Name/PageID is in This collection A/12,B/11,C/13,A/14,B/15,C/16…..Now
new FilterPropertySort(“PageName”, FilterSortDirection.Descending).Filter(children); Will give me a result like A/14,A/12,B/15,B/11,C/16,C/13.Rather I need like A/12,A/14,B/11,B/15,C/13,C/16… Plz help me to resolve this Problem…
-
Great tip.
This post just saved me hours!
Thanks.


3 comments
Comments feed for this article
Trackback link: http://antecknat.se/blog/2008/03/25/sort-a-pagedatacollection-via-property/trackback/