The quick way as I see it would be implementing IComparable for your class A (if possible ofcourse)
class A : IComparable
It's a simple implementation where you write the CompareTo(A other) have a look at IEnumerable(of T).Min on MSDN for a reference guide