# HG changeset patch # User alabra # Date 1315172133 10800 # Node ID 85ddae313408d292cd48653bebb0893875be5680 # Parent b921a0ab85048c1a06f2cd52a427c7f07f902624 Se soluciona ticket #178. Se resuelve ordenar Historico de Eventos solamente por NumeroOrden de forma descendente. diff -r b921a0ab8504 -r 85ddae313408 Agendas/trunk/src/Agendas.Web/Controllers/HistoricoController.cs --- a/Agendas/trunk/src/Agendas.Web/Controllers/HistoricoController.cs Wed Aug 31 07:29:31 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Controllers/HistoricoController.cs Sun Sep 04 18:35:33 2011 -0300 @@ -11,10 +11,10 @@ { var agenda = AgendaFactory.GetAgenda(); - var model = new HistoricoIndexModel + var model = new HistoricoIndexModel { - Items = from e in agenda.GetHistorico() - orderby e.FechaInicio + Items = from e in agenda.GetHistorico() + orderby e.NumeroOrden descending select new HistoricoDto { Id = e.Id.ToString(), diff -r b921a0ab8504 -r 85ddae313408 Agendas/trunk/src/Agendas.Web/Views/Historico/Index.cshtml --- a/Agendas/trunk/src/Agendas.Web/Views/Historico/Index.cshtml Wed Aug 31 07:29:31 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Views/Historico/Index.cshtml Sun Sep 04 18:35:33 2011 -0300 @@ -15,7 +15,7 @@
- @foreach (var item in Model.Items.OrderByDescending(i => i.Numero)) + @foreach (var item in Model.Items) {