[#absl-c_stable_sort-0b] = xref:absl.adoc[absl]::c_stable_sort :relfileprefix: ../ :mrdocs: `c_stable_sort` overloads == Synopses Declared in `<absl/algorithm/container.h>` Container‐based version of the <algorithm> `std::stable_sort()` function to sort elements in ascending order of their values, preserving the order of equivalents. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename C> void xref:absl/c_stable_sort-03.adoc[c_stable_sort](C& c); ---- [.small]#xref:absl/c_stable_sort-03.adoc[_» more..._]# Overload of `c_stable_sort()` for performing a `comp` comparison other than the default `operator<`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C, typename LessThan> void xref:absl/c_stable_sort-0f.adoc[c_stable_sort]( C& c, LessThan&& comp); ---- [.small]#xref:absl/c_stable_sort-0f.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *c* | The container to sort. | *comp* | The comparison used to order the elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#