Last active
November 28, 2016 20:46
-
-
Save soen/f84c281f85f17eaf632041dafe78cf8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (var context = ContentSearchManager.GetIndex("sitecore_master_index").CreateSearchContext()) | |
{ | |
var results = context.GetQueryable<SearchResultItem>() | |
.OrderBy(x => x.CreatedDate); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment