Add getting topN sorted numbers.