When the requirements for an algorithm state that it is “stable” without further elaboration,
- For the sort algorithms the relative order of equivalent
elements is preserved.
- For the remove and copy algorithms the relative order of
the elements that are not removed is preserved.
- For the merge algorithms, for equivalent elements in
the original two ranges, the elements from the first range (preserving their
original order) precede the elements from the second range (preserving their