Ranking by number for cumulative calculation

Why don’t you just sort the values in the chart?