How do you want to deal with "ties", for example:
Code:
Product Sold Product Class
12 Thingie
15 Thingie
7 Thingie
12 Thingie
12 Thingie
12 Thingie
7 Thingie
15 Thingie
7 Thingie
Would it produce:
Code:
Product Sold Product Class
15 Thingie
12 Thingie
7 Thingie
or maybe
Code:
Product Sold Product Class
15 Thingie
15 Thingie
12 Thingie
12 Thingie
12 Thingie
12 Thingie
7 Thingie
7 Thingie
7 Thingie
Each of these are valid answers, using different rules for how to count the "three" part!
-PatP