Advanced Algorithm scripting: Inventory update Order of items


I would like to find out if the order of the inventory should really matter as I do return all the correct inventory amounts, but can`t pass the question as the inventory is not in the same order as the test cases.

The ordering requirement is in the challenge description: “The returned inventory array should be in alphabetical order by item.”

Oh didn`t see that, thanks