I have string with numbers:
string s1 = "cos555cos";
string s2 = "coscos1";
string s3 = "22coscos";
string s4 = "333coscos";
string s5 = "cosco444s";
I made a list:
IList<string> test = new List<string>();
test.Add(s1);
test.Add(s2);
test.Add(s3);
test.Add(s4);
test.Add(s5);
How to order it by number. The result should be like:
s2, s3, s4, s5, s1
foreach (var item in test)
{
Console.WriteLine(item);
}