QSort by most often values
Unsolved
General and Desktop
-
I just start use std::algorithms and QtAlgorithms and can't find something like sort_by_most_often. I have a concept how can i do such stuff for myself, it would take some time to create such algorithm, but i'm 100% sure alot of people did that long before me, and such thing should exist in Qt(or at least in std).
P.S. google don't help very much..
-
Must it happen in place (no copy with size of the original container created)? Must the sort be stable (preserving order between equal elements)?