Here\'s the full error message: The method \'Skip\' is only supported for sorted input in LINQ to Entities. The method \'OrderBy\' must be called before the method \'Skip\'
You need to add an .OrderBy() in the expression:
.OrderBy()
return View(db.PurchaseOrders.OrderBy(i => i.SomeProperty).ToPagedList(page ?? 1, 3));
The .ToPageList() method uses .Skip() and .Take() so it must be passed an ordered collection first.
.ToPageList()
.Skip()
.Take()