cmp function in sorting a vector of vecotr code example Example: sort vector sort(v.begin(), v.end());