if you have a hypothetical class like:
is there a way to use the STL list.sort() function to sort with respect to one of your private members? in this case i'd like to sort with respect to the integer "n".Code:class myClass{ public: private: int n; string m_string; char m_char; // etc. };
?????????