Click here to Skip to main content
15,881,781 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi, Friends list contains some values, list1(2,5,3,7,1,hundred,three,eight), how to sort the values as (1,2,3,5,7,three,eight)
Posted

1 solution

SQL
--using Linq:
List<Order> SortedList = objListOrder.OrderBy(o=>o.yourvalues).ToList();
 
Share this answer
 
Comments
Member 11724596 5-Aug-15 9:17am    
give me more explanation

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900