if your requirement is adding items in correct order by using alphanumeric values, check below sample code
void Main()
{
SortedList<string,student> list = new SortedList<string,student>(new MyComparer());
list.Add("A000",new Student(){Name ="A"});
list.Add("A010",new Student(){Name ="F"});
list.Add("A005",new Student(){Name ="G"});
}
class MyComparer : IComparer<string>
{
public int Compare(string a, string b)
{
var x = int.Parse(Regex.Replace(a, "[^0-9]", ""));
var y = int.Parse(Regex.Replace(b, "[^0-9]", ""));
if (x != y) return x - y;
return -1 * string.Compare(a, b);
}
}
class Student
{
public string Name{get;set;}
}
</string>
you can use SortedList and it will sort item based on given comparer, here i have added custom comparer for your alphanumeric values.