Subj : how to use sort(Compare comp) To : borland.public.cpp.borlandcpp From : Scott Date : Fri Jul 30 2004 02:37 pm Hi, I'm using Borland C++ 5.02 and I came across the problem with using sort() function. Basically, I want to use "template void sort (Compare comp);" function in list.h, but when I use it in my program, the compiler complains with a message "Extra parameter in call to std::list::sort()" For example, list strlist; strlist.push_back("abc"); strlist.push_back("bcd"); ... strlist.push_back("xdd"); strlist.sort(greater()); What am I missing? .