[#absl-c_stable_sort-0b]
= xref:absl.adoc[absl]::c&lowbar;stable&lowbar;sort
:relfileprefix: ../
:mrdocs:

`c&lowbar;stable&lowbar;sort` overloads

== Synopses

Declared in `&lt;absl&sol;algorithm&sol;container&period;h&gt;`

Container&hyphen;based version of the &lt;algorithm&gt; `std&colon;&colon;stable&lowbar;sort()` function to sort elements in ascending order of their values, preserving the order of equivalents&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename C&gt;
void
xref:absl/c_stable_sort-03.adoc[c&lowbar;stable&lowbar;sort](C& c);
----

[.small]#xref:absl/c_stable_sort-03.adoc[_» more&period;&period;&period;_]#

Overload of `c&lowbar;stable&lowbar;sort()` for performing a `comp` comparison other than the default `operator&lt;`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename C,
    typename LessThan&gt;
void
xref:absl/c_stable_sort-0f.adoc[c&lowbar;stable&lowbar;sort](
    C& c,
    LessThan&& comp);
----

[.small]#xref:absl/c_stable_sort-0f.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *c*
| The container to sort&period;
| *comp*
| The comparison used to order the elements&period;
|===


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