[#bsl-list-054-sort-08] = xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::sort :relfileprefix: ../../ :mrdocs: `sort` overloads == Synopses Declared in `<bslstl_list.h>` Sort this list in non‐decreasing order using `operator<`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/list-054/sort-05.adoc[sort](); ---- [.small]#xref:bsl/list-054/sort-05.adoc[_» more..._]# Sort this list in non‐decreasing order using the specified `comparator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class COMPARE> void xref:bsl/list-054/sort-0a.adoc[sort](COMPARE comparator); ---- [.small]#xref:bsl/list-054/sort-0a.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *comparator* | binary predicate defining the sort order |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#