Hello. I have a multi dimensional array that needs to be sorted. Array top25 [index][product id][number_of_purchases]. The index will contain a unique number for each product id. First product will be 1, second product will be 2, etc. The product id will be a id number like 34324ac9a89. The number of purchases will be how many times the item has been purchased.
- End result: I want to print the 25 most purchased products in this format.
product id - number of purchases
a39acz - 503
a8cz9c - 480
zc8ac - 392
How do I do this? Thanks