You are viewing a single comment's thread. Return to all comments →
As Mike Buttery points out, sorting by (len(s), s) is far faster than int as key. But sir_suhrubs' was 2x faster still! even though it's 2 sorts.
Seems like cookies are disabled on this browser, please enable them to open this website
Big Sorting
You are viewing a single comment's thread. Return to all comments →
As Mike Buttery points out, sorting by (len(s), s) is far faster than int as key. But sir_suhrubs' was 2x faster still! even though it's 2 sorts.