How to sort string list?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
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
How can i get this result? here is my code,
listcode.Sort(); // listcode is my string list