fix bug of rank sort
fix bug of simple rank