Как отсортировать список строк?
I am working on one project and now i am stuck on very silly program i.e sorting list. I have list of items range between 0-500 . and items like (e.g "45848^kjf,10" , "450240^jdk,20" , "448278^dj,30"). My current code sort list in decending order but the order gets wrong result . i.e 1. 45848^kjf,10 2. 450240^jdk,20 3. 448278^dj,30 I want to sort list items with respective to the number before "^" this symbol and 45848 is smaller than below two numbers so, my expected result is 1. 450240^jdk,20 2. 448278^dj,30 3. 45848^kjf,10 How can i get this result? here is my code,
Что я уже пробовал:
listcode.Sort(); // listcode is String list listcode.Reverse();