ASP.NET MVC - Model.OrderBy Date has no effect
I'm having some difficulties to sort my results by Date. Is there any special method? Because I'm doing this right now: var db = new DB(); var articles = db.Articles; var orderedArticles = articles.OrderBy(a => a.Date); return View(orderedArticles.ToList()); Where Date is a datetime field. And there is no effect for OrderBy(..) or OrderByDescending(..) So I managed to check what is happening. Everytime I add a new Article I'm just using the date on not the time so if I have two articles both for the same day for example: with: var orderedArticles = db.Articles.OrderByDescending(a => a.Date)