Quote Originally Posted by enricong View Post
I was hoping there was an easier way than that
It is quite easy.

like how you can sort columns on a table.
And how do you do that?

Are there any examples of howto create a custom LessThan to pass to qSort?
I'm sure there are some in the docs. And here is one that uses a functor:
http://qt-project.org/forums/viewthread/4978 (which of course does something completely different from what you want).