Skip to content

Instantly share code, notes, and snippets.

@stevenharman
Created February 19, 2009 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevenharman/67072 to your computer and use it in GitHub Desktop.
Save stevenharman/67072 to your computer and use it in GitHub Desktop.
public class FindGoodStuffQuery : INamedQuery<Idea>
{
public IQueryable<Stuff> Apply(IQueryable<Stuff> queryable)
{
return queryable
.OrderByDescending(s => s.Widgets.Count())
.ThenByDescending(s => s.CreatedAt);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment