I\'d like to sort an array without changing the index value. How can I achive this?
array:
let data = []; data[12] = {"apples":1, "pears