J
JDeats
If I have
class Student
{
public string LastName
public string FirstName
public int Age;
public int ID;
}
and I have an ArrayList that's storing only Student objects, how can I
sort the ArrayList by LastName? Using a IComparer class appears to only
allow < > comparisons on a numeric field...
class Student
{
public string LastName
public string FirstName
public int Age;
public int ID;
}
and I have an ArrayList that's storing only Student objects, how can I
sort the ArrayList by LastName? Using a IComparer class appears to only
allow < > comparisons on a numeric field...