bool COMfunction(int i, int j) {
return i < j;
} // function used for comparison
struct COMstruct {
bool operator() (int i, int j) {
return i < j;
}
} COMobject; // object usd for comparison
sort(iterator1, iterator2, funcionORobject); // use the rule set by compare function or object to sort a container from it1 to it2;