I have 2 arrays:
firstArr = ["Pizza", "Pasta", "Chicken Soup", "French Fries"]
secondArr = [8, 6, 6, 9]
now I sort the second Array like this:
secondArr = [9, 8, 6, 6]
I then want the first Array to follow this new order:
firstArr = ["French Fries", "Pizza", "Chicken Soup", "Pasta"]
How can I achieve this?