3 ms·
it's sorting 50 times a list going from 50 to 0 items.
by hdjfjkremmr 1y ago
it's sorting 50 times a list going from 50 to 0 items.
- blharr 1y ago49 of those times, it's hitting the best case of sorting an already sorted list, so I still can't imagine that huge of a performance penalty
- hyperhello 1y agoThere are sort algorithms that don’t do any work except scanning if the list is unsorted, but there are more efficient ones to use if they are.