Yes, in C ++ list::sort() is stable according to ISO 14882: 2003 23.2.2.4 [lib.list.ops] / 31
Effects: Sorts the list according to the operator< or a Compare function object. Notes: Stable: the relative order of the equivalent elements is preserved. If an exception is thrown the order of the elements in the list is indeterminate.
Cubbi source share