private void orderNotificaciones() { int op = 0; if (selectedItem2 != null) { op = Convert.ToInt16(selectedItem2.Tag.ToString()); } switch (op) { case 0: Notificaciones = Notificaciones.OrderBy(x => x.Id).ToList(); break; case 1: Notificaciones = Notificaciones.OrderBy(x => x.Fecha).ToList(); break; case 2: Notificaciones = Notificaciones.OrderByDescending(x => x.Tipo).ToList(); break; } }