toPagedList() order differs from the LINQ order by clause

泪湿孤枕 提交于 2019-12-01 18:44:36

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!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!