hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

8.9K
active users

Šimon Tóth

The std::stable_sort is a slower version of std::sort that additionally provides stability, i.e. equivalent elements maintain their relative positions.

This is important, notably for interactive cases when one range can be repeatedly sorted based on different aspects.

Compiler Explorer link: compiler-explorer.com/z/jEsW9G

@simontoth Making unstable sort the default is one thing that C++ got right and Rust got wrong.