The reason for choosing fast sorting by stable sorting is mainly speed: qsortoften faster stable_sort, which should appear as not surprising, because it stable_sorthas a stronger guarantee.
O (N ยท < > 2 > (N)). , - O (N ยท log (N)).
- : qsort , , . stable_sort, , , .
, , , . , .
rcgldr : ( HP/Microsoft std::stable_sort 1/2 . , , .