Pivot tables provide a built-in ranking feature, and can rank smallest to largest or largest to smallest.
In the example shown, a pivot table is used to group and rank sales by item.
The pivot table is also sorted by rank so that the top sales items appear first.
The Amount field has been added twice as a value field.