[#bsl-list-054-sort-05]
= xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::sort
:relfileprefix: ../../
:mrdocs:

Sort this list in non&hyphen;decreasing order according to the order provided by `operator&lt;`&period; `operator&lt;` must provide a strict weak ordering over `value&lowbar;type` (see &lsqb;&rsqb;and Strict Weak Ordering))&period; The sort is stable, meaning that if `!(a &lt; b) &amp;&amp; !(b &lt; a)`, then the ordering of elements `a` and `b` in the sequence is preserved&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;list&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
sort();
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
