title: Why won't qSort() work?
body: <p>Ok, I'm trying to sort a list of my own TvShow classes to display a list of TvShows in the order decided by the user. This is what I've come up with thus far, after reading the documentation on qSort().</p>
  
  <pre><code>bool MainWindow::compareShowsByName(TvShow* showA, TvShow* showB)
  {
      return showA-&gt;getShowName() &lt; showB-&gt;getShowName();
  }
  
  QList&lt;TvShow*&gt; MainWindow::orderShowsByName()
  {
      QList&lt;TvShow*&gt; orderedShowList = appSettings.TvShows;
      qSort(orderedShowList.begin(), orderedShowList.end(), compareShowsByName);
      return orderedShowList;
  }
  </code></pre>
  
  <p>Of course, this fails with following errors:</p>
  
  <pre><code>../EpisodeNext/mainwindow.cpp: In member function 'QList&lt;TvShow*&gt; MainWindow::orderShowsByName()':
  ../EpisodeNext/mainwindow.cpp:192: error: no matching function for call to 'qSort(QList&lt;TvShow*&gt;::iterator, QList&lt;TvShow*&gt;::iterator, &lt;unresolved overloaded function type&gt;)'
  ../../QtSDK/Simulator/Qt/gcc/include/QtCore/qalgorithms.h:184: note: candidates are: void qSort(RandomAccessIterator, RandomAccessIterator, LessThan) [with RandomAccessIterator = QList&lt;TvShow*&gt;::iterator, LessThan = bool (MainWindow::*)(TvShow*, TvShow*)]
  ../EpisodeNext/mainwindow.cpp: In member function 'QList&lt;TvShow*&gt; MainWindow::orderShowsByAirDate()':
  ../EpisodeNext/mainwindow.cpp:199: error: no matching function for call to 'qSort(QList&lt;TvShow*&gt;::iterator, QList&lt;TvShow*&gt;::iterator, &lt;unresolved overloaded function type&gt;)'
  ../../QtSDK/Simulator/Qt/gcc/include/QtCore/qalgorithms.h:184: note: candidates are: void qSort(RandomAccessIterator, RandomAccessIterator, LessThan) [with RandomAccessIterator = QList&lt;TvShow*&gt;::iterator, LessThan = bool (MainWindow::*)(TvShow*, TvShow*)]
  make: *** [mainwindow.o] Error 1
  </code></pre>
  
  <p>Any idea what can be wrong? I'm using the latest version of the Qt SDK (Qt SDK 1.1 RC with Qt 4.7.3)</p>
  
  <p>Thanks in advance!</p>