Link to home
Start Free TrialLog in
Avatar of enrique_aeo
enrique_aeo

asked on

orderby list (from Json)

hi experts

i have this list

  public class SAPArea
    {
        public string CodDivision { get; set; }
        public string CodArea { get; set; }
        public string Nombre { get; set; }
    }

public ActionResult ListarAreas()
        {
            List<SAPArea> lista = new List<SAPArea>();

            lista = oPORTCliente.Get<List<SAPArea>>(string.Format("area/buscarArea?codDivision={0}&codArea={1}&nombre={2}", Constantes.CodDivision, string.Empty, string.Empty));

            return Json(new { result = 0, data = lista }, JsonRequestBehavior.AllowGet);
        }

I need to sort the list by Nombre
www.png
ASKER CERTIFIED SOLUTION
Avatar of Ioannis Paraskevopoulos
Ioannis Paraskevopoulos
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial