write a JavaScript function that takes 1 argument : an array of numbers. This function sorts the elements of input array in ascending order. S code example
Example: sort array of objects in ascending order in js
homes.sort(function(a, b) {
return parseFloat(a.price) - parseFloat(b.price);
});