A set of different ways to do the same thing in C++: sorting a container of type T, using a member variable of that type.