title: Use class method comparator on std::sort
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1902311/problem-sorting-using-member-function-as-comparator">problem sorting using member function as comparator</a>  </p>
  </blockquote>
  
  
  
  <p>Is it possible to use a class method as comparator function in std::sort? </p>
  
  <p>for example:</p>
  
  <pre><code>std::sort(list.begin(),list.end(),object-&gt;comparator) //Doesn't compile
  </code></pre>
  
  <p>If yes, how I do this?</p>