10
I have the following syntax and it’s not working
return View(trabalhos.Where(a => a.Usuario == User.Identity.Name &&
a.Data.Month == DateTime.Today.Month &&
a.Data.Year == DateTime.Today.Year).ToList()
.OrderByDescending(a => a.Data)
.OrderByDescending(a => a.HoraInicial));
Notice that I have two attributes with ordering Orderbydescending.
In this example the prevailing ordination is Orderbydescending(a => a.Initial), leaving without effect any ordination Orderbydescending(a => a.Data)
I would like the two fields to sort first by Date and after the sort date do the Start Time.
Did you have your question answered? Something needs to be improved?
– Jéf Bueno