I have class called Racecar
, and 40 Racecar
objects are in a vector
and each object has a data member named myTotalPoints
.
After each race and points are awarded, I want to sort all of the objects' myTotalPoints
data members from greatest to least so I can show them in point standings. Does anyone know how I could sort all 40 of the Racecar
objects' data members ?