I have an array for item names, and another for item prices. I want to sort the prices from least to greatest, but have the appropriate items and the prices be at the same index.
For example: [9, 4, 1] & ["item 1", "item 2", "item 3"] -> [1, 4, 9] & ["item 3", "item 2", "item 1"]
Any idea how i could do this efficiently for large arrays?