Loading ...

sort alphanumeric string using LINQ | CodeAsp.Net

sort alphanumeric string using LINQ

Posted in: ASP.NET Topics  »  Getting Started / General ASP.NET
Subscribe to RSS
  • dhanlak1


    Does anyone know how to sort using linq-entity.

    i use the following code:
    from i in objEntities.Items
    where ....
    orderby i.Name
    select i

    The result is a1,a10,a11,a2,a3, b2,b21, b22,  c3....  But, i want it to be like a1,a2,a3,a10,a11, b2,b21,b22, c3...

    This is very urgent. Please help me.

  •   Answered
    Vincent Maverick Durano, MVP
  • dhanlak1

    Thanks a lot

    This was very very usefull!

    Another similar article found here:


    Thanks again

  • Page 1 of 1 (3 items)