node js files foreach sort 1 10 2 3 4 5 code example Example: javascript sort homes.sort((a, b) => parseFloat(a.price) - parseFloat(b.price));