removed erroneus return statement which was breaking sorter_rank