I have the following syntax and it is 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 ordering that prevails is OrderByDescending (a => the InitialTime) , leaving no ordering OrderByDescending (a => a.Data) >
I would like the two fields to sort first by Date and after the date ordering make the Start Time.