Sort this list in non-decreasing order using the specified comparator.
Declared in <bslstl_list.h>
template<class COMPARE>
void
sort(COMPARE comparator);
comparator must define a strict weak ordering over value_type (see []and Strict Weak Ordering)). The sort is stable, meaning that if !comparator(a, b) && !comparator(b, a), then the ordering of elements a and b in the sequence is preserved.
| Name | Description |
|---|---|
| comparator | binary predicate defining the sort order |