sort json array by value 1 and then 3 and then 6 etc code example
Example: sort array of objects in ascending order in js
homes.sort(function(a, b) {
return parseFloat(a.price) - parseFloat(b.price);
});
homes.sort(function(a, b) {
return parseFloat(a.price) - parseFloat(b.price);
});