sort example int main() { string a[ ] = {"one","two","three","four"}; const int N = 4; sort(a, a + N, not2(less())); copy(a, a + N, ostream_iterator(cout, "\n")); }