PDA

View Full Version : sorting QList<float>



timmu
23rd January 2012, 15:38
Hi,

What is the best way to sort QList<float> ?

(unfortunately sort() is not a member of this class).

Ideally I'd like to sort it the same way I could sort QStringList.

Thanks!

Lykurg
23rd January 2012, 16:55
See qSort().

isch
23rd January 2012, 17:16
Hi,

you can use
qtalgorithms.html#qSort
or
qtalgorithms.html#qStableSort