I had some problems today getting a PageCollection sorted by the “StartPublish”-property. After some digging, I found out that the page property-names should be prefixed by “Page”. So instead of sorting by “StartPublish” I should’ve sorted by “PageStartPublish” all along.
FilterPropertySort sorter = new FilterPropertySort("PageStartPublish", FilterSortDirection.Descending);
pagesCollection.Sort(sorter);
Advertisement

Leave a comment
Comments feed for this article