logoalt Hacker News

SJC_Hackertoday at 2:58 PM0 repliesview on HN

List::sort is present exactly for this reason

STD::sort only works on a random access iterator, it won’t even compile if you try it on a list