title: Sort a std::list<myclass*> with myclass::operator<(myclass &other)
body: <p>I have a <code>std::list&lt;myclass*&gt;</code> and in my class I have <code>myclass::operator&lt;(myclass &amp;other)</code> defined.</p>
  
  <p>I use the <code>std::list.sort()</code> function, but it does not change anything in that list. Maybe it just sorts the pointers?</p>
  
  <p>How can I sort the actual items in that list?</p>