Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

How to OrderBy with XhtmlString?

$
0
0

Is there any way to supply an OrderBy to XhtmlString type value?

In general, For a string value i.e. 

Contrary to popular belief, Lorem Ipsum... and There are many variations of passages..., It would sort the Contrary.. first based on alphabetical order. 

But for XhtmlString type value in Episerver which comes with HTML tags included with it, It is not easy to work with LinQ OrderBy.

I'm just wonering if is there any easy way to use OrderBy for following code snippet, Where the Title is type of XhtmlString - 

result = filters
.OrderBy(c => c.Title)
.Skip(skip).Take(take)
.GetContentResult<CorporateGuestReportingBlock>();

How could I order those type of strings in Episerver?

Thanks for your time.


Viewing all articles
Browse latest Browse all 9076

Trending Articles