If you have strings like:
\"file_0\" \"file_1\" \"file_2\" \"file_3\" \"file_4\" \"file_5\" \"file_6\" \"file_11\"
how can you sort them so
Do I have to parse the string and convert it into a number for this?
Essentially, yes; but LINQ may help:
var sorted = arr.OrderBy(s => int.Parse(s.Substring(5))); foreach (string s in sorted) { Console.WriteLine(s); }