Hacker News new | past | comments | ask | show | jobs | submit login

Ah, I knew I would get one of them wrong, and then didn't go back to check, so

C++ indeed has std::ranges::sort() and std::ranges::stable_sort()

However Rust's [T].sort() is paralleled by [T].sort_unstable()

That is, I just got the Rust names in the wrong order. The orthography is different because how these work under the hood is very different, but that's not important here.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: