How do I sort a QList of QDateTime* objects by the value of the QDateTime object?
Asked
Active
Viewed 7,717 times
5
-
If you want to sort by the content of the QDateTime, and not the pointer values, then you should say so. Otherwise the trivial answer is simply `qSort(list)`; – rohanpm Apr 18 '11 at 01:50
-
My fault, I want to sort by the value, I've edited the question – Jon Apr 18 '11 at 02:04
-
2There is no need to handle QDateTime edits as pointers, better use a QList
. – Frank Osterfeld Apr 18 '11 at 06:26