Sorting in TermsFacet



I would like to sort results by published date in each facet returned by the results. 


//Applying ReadAccess_Filter for the query
var query = SearchClient.Instance.Search<BasePage>(Language.Swedish).ForWithWildcards(Query)
.InField(x => x.PageName)
.AndInField(x => x.MainBody)
.AndInField(x => x.SearchText)
.TermsFacetFor(x => x.SearchHitType, x => x.AllTerms=true);



Results = query.Select(x => new Hit {
Title = x.PageName,
Url = x.LinkURL,
Text = GetSnippet(
pubDate = x.StartPublish.GetTodayOrTomorrowOrTimeAndDate(),
Type = x.SearchHitType


 rpFilter.DataSource = Results.TermsFacetFor<BasePage>(x => x.SearchHitType);


Any help is appreciated !


Mar 19, 2014 15:49
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.