sorted_count is not needed with option (1)
sum and sum_na
sorted index back