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
ASP.NET.NET ProgrammingC#

Avatar of undefined
Last Comment
Ioannis Paraskevopoulos

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Ioannis Paraskevopoulos

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Your help has saved me hundreds of hours of internet surfing.
fblack61