You could try:
return View(links.ToPagedList(pageNumber, pageSize, m => m.ID, true));
It's off the top of my head, so I'm sorry if it doesn't work perfectly...
-- Wow, just noticed the date on this one... I need to stop trawling the unanswered pages without sorting by date!
- toPagedList() order differs from the LINQ order by clause
- creating Linq to sqlite dbml from DbLinq source code
- Is it possible to add linq to the end of a method that returns rows from a database? I just want to tack on an ORDER BY clause
- c# Linq or code to extract groups from a single list of source data
- Entity Framework dynamic linq where from generic source with dynamic where clause
- Enumerable.Empty<T>().AsQueryable(); This method supports the LINQ to Entities infrastructure and is not intended to be used directly from your code
- How to understand the following C# linq code of implementing the algorithm to return all combinations of k elements from n
- is there anyway to remove from a collection based on a .Where() linq clause (.RemoveWhere() ?)
- How to pass LinQ Expressions from F# to C# code
- Using LINQ to delete an element from a ObservableCollection Source
- Does order of conditions under where clause in a LINQ query matter
- How does linq actually execute the code to retrieve data from the data source?
- LINQ Source Code Available
- How to build a dynamic FROM clause for a LINQ query?
- Linq with where clause in many-to-many EF Code First object
- Creating a dynamic Linq select clause from Expressions
- using linq query to find value that differs from previously found value
- Is there a bug in this code from 101 LINQ Samples on MSDN? (Update: Fixed)
- Is there any default order in which where clause in LINQ query filters sequence
- How do I get results from a Linq query in the order of IDs that I provide?
- Generate Linq Or Clause from List of Enumeration
- C# - Linq optimize code with List and Where clause
- Cannot cast from generic to get LINQ where clause
- LINQ Where clause throws casting exception from string to Guid even though comparison only contains Guids
- LINQ dynamic from clause
- C# LINQ How to get a data source from a db?
- Selectively remove from where clause in LINQ expression tree
- C# Linq - Order by ASC starting from VALUE
- Linq Query Filter from two lists where row differs
- Linq select from two tables order by list
- Linq sub collection criteria where collection is a list of doubles
- LINQ to PostgreSQL errors when using DbLINQ
- Succinct LINQ filter expression
- Convert List<List<int>> to double
- C# algorithm refactor splitting an array into 3 parts?
- C# LinqToSql SubmitChanges() does not update, even though PK is set
- If any matches any in list using Entity Famework
- Any vs Where clause in LINQ
- Match on 2 values
- How to convert array of strings to IList<SomeType>?
- Filtering rows of a DataTable with the return type of a DataTable
- Better method to get users belonging to no role?
- Read subfolder files by giving inner subfolder files priority?
- what is the difference between ObjectQuery and "var"?
- XML to LINQ parsing of an XML with namespace in C#
- In C#, How can I sort a collection by a property in an object?
- Join dynamic query result with an EntitySet using Linq?
- Linq PredicateBuilder, grouping and operator precedence
- Paging in Gridview with Linq
- Getting property value from model in view using Razor without new object declaration