Is it one of the following or something else?
//1
sort(first,last,[](const T &a,const T &b){return comp(b,a);});
//2
sort(first,last,bind(comp,ref(_2),ref(_1));
//3
sort(make_reverse_iterator(last),make_reverse_iterator(first),comp);
//Use value instead of reference if object size is small.
This is not a duplicate of Sorting a vector in descending order ,this one considers user-defined comparison function.