It's implementation defined. However, it must follow these restrictions (§23.2.2.4):
Stable: the relative order of the equivalent elements is preserved.
Complexity: Approximately NlogN comparisons, where N == size().
So it's a stable sort with O(nlog n)
.
GMan
2010-07-22 07:20:22