title: Where does paging, sorting, etc go in repository pattern?
body: <p>Where do we put the logic for paging and sorting data in an asp.net repository pattern project?</p>
  
  <p>Should it go in the service layer or put it in the controller and have the controller directly call the repository? Controller -> Repository is shown <a href="http://highoncoding.com/Articles/566_JQuery_jqGrid_Export_to_Excel_Using_ASP_NET_MVC_Framework.aspx">here</a> for a jquery grid.</p>
  
  <p>But unlike that article, my repository returns <code>IQueryable&lt;datatype&gt;</code></p>