Hi,

you can use
http://doc.qt.io/qt-4.8/qtalgorithms.html#qSort
or
http://doc.qt.io/qt-4.8/qtalgorithms.html#qStableSort