fixed returns of rank when asc type used