I have some dictionarys and I want to sort them into arrays based on their price float.

```
   // what I have
        product1 = ["name": "milk","price": 3.2]
        product2 = ["name": "bread","price": 2.9] 
        product3 = ["name": "meat","price": 4.1] 
        product4 = ["name": "sweets", "price": 1.0]
// what I want to convert it to
        priceArray = [1.0,2.9,3.2,4.1] 
        nameArray = ["sweets","bread","milk","meat"]

```

I want to make it so that the cheapest product is first in both the priceArray and the nameArray, and have all the products sorted like that