I have a class with 2 strings and 1 double (amount).
class Donator
Now I have a A
You can also use delegates:
class Program
{
static void Main(string[] args)
{
List myDonors = new List();
// add stuff to your myDonors list...
myDonors.Sort(delegate(Donor x, Donor y) { return x.amount.CompareTo(y.amount); });
}
}
class Donor
{
public string name;
public string comment;
public double amount;
}