sort and search ranknode