Can we control LINQ expression order with Skip(), Take() and OrderBy()
问题 I'm using LINQ to Entities to display paged results. But I'm having issues with the combination of Skip() , Take() and OrderBy() calls. Everything works fine, except that OrderBy() is assigned too late. It's executed after result set has been cut down by Skip() and Take() . So each page of results has items in order. But ordering is done on a page handful of data instead of ordering of the whole set and then limiting those records with Skip() and Take() . How do I set precedence with these