Edit**** I believe I messed up the explanation originally. Thank you to Brilliand for pointing that out.
Right now I can map through the data, fine. I want to reorganize it, so I can map and display it by the highest sale of the day to lowest.
data[0].stats.one_day_sales = 2
data[1].stats.one_day_sales = 17
data[2].stats.one_day_sales = 10
The output I am looking for, mind you each [i] contains other data that I want to go along with the reorganization.
data[1].stats.one_day_sales = 17
data[2].stats.one_day_sales = 10
data[0].stats.one_day_sales = 2
I have attached a photo of the data I am receiving as well to better clarify.
Thanks for your help in advance!