I have a class with 2 strings and 1 double (amount).
class Donator
Now I have a A
I always use the list generic, for example
List MyList;
then I call MyList.Sort
MyList.Sort(delegate (Donator a, Donator b) { if (a.Amount < b.Amount) return -1; else if (a.Amount > b.Amount) return 1; else return 0; );