Revise the function selectionSort so that it sorts an array of C++ structures according to one int data member, which is the sort key. Repeat this exercise for an array of instances of a class. Assume that this class contains a member function sortKey that returns the integer sort key.