add sort by rank