First page Back Continue Last page Graphics
SORT
Now to use the sort function, you need to add one more parameter to the sort call.
This third parameter is a predicate (returning true or false) and is used to compare the items in the vector.
For integers or doubles, this can be the default comparison (leave off the third parameter) since the system knows how to compare those.