Hacker News new | ask | show | jobs
by JoachimSchipper 5203 days ago
std::sort is stable, IIRC. Otherwise, they are similar; and yes, std::sort is typically faster.

Do note that instruction caches are not unlimited, though: bloated code does have a performance cost (sometimes, caches are hard.)

1 comments

std::stable_sort exists and is the stable one.