Write a function that takes an array of numbers, sorts the elements in ascending order and returns the sorted array? code example
Example: sort array of objects in ascending order in js
homes.sort(function(a, b) {
return parseFloat(a.price) - parseFloat(b.price);
});