Remove superfluous sort function

#8 (comment)

Co-authored-by: Garret Alfert <alfert@wevelop.de>
This commit is contained in:
2021-11-13 21:53:56 +01:00
parent 54352e09e8
commit f83ef92adc

View File

@@ -18,7 +18,7 @@ function lowestNumberInListing(items) {
const sortedNumbers = Object.keys(items)
.map(i => parseInt(i))
.filter(i => !Number.isNaN(i))
.sort(function(a, b) { return a - b });
.sort();
return sortedNumbers[0];
}