Use partial heap sort for `most_common`