Jamie Dixon
Web Developer, Software Engineer and Mixed Language Artist
-
EpiServer – Page List Sort by Creation Date
Posted on April 7th, 2010 No commentsI had the delightful task today of sorting an EPiServer PageList control by creation date.
The EPiServer documentation was of little help except in pointing out the SortOrder property. After some more searching around, I found that this property can be populated by the EPiServer.Filters.FilterSortOrder enum.
Here’s a quick example:
epiPageList.SortOrder = EPiServer.Filters.FilterSortOrder.CreatedAscending; epiPageList.DataBind();
Here’s the full list of enum options available for sorting by SortOrder:
EPiServer.Filters.FilterSortOrder.Alphabetical EPiServer.Filters.FilterSortOrder.ChangedDescending EPiServer.Filters.FilterSortOrder.CreatedAscending EPiServer.Filters.FilterSortOrder.CreatedDescending EPiServer.Filters.FilterSortOrder.Index EPiServer.Filters.FilterSortOrder.None EPiServer.Filters.FilterSortOrder.PublishedAscending EPiServer.Filters.FilterSortOrder.PublishedDescending EPiServer.Filters.FilterSortOrder.Rank
Leave a reply


