I have an ArrayList that contains,
[0] = \"1\"
[1] = \"10\"
[2] = \"2\"
[3] = \"15\"
[4] = \"17\"
[5] = \"5\"
[6] = \"6\"
[7] = \"27\"
[8] = \"8\"
[9] = \"9\"
>
Maybe you could store the values in a strongly typed list like List instead, and the, if necessary, convert them to string, when cosuming them. Like this:
List intList = new List(new int[] {3, 2, 1});
intList.Sort();
foreach (int theInt in intList)
{
System.Diagnostics.Debug.WriteLine(theInt.ToString());
}