Remove superfluous sort function

#8 (comment)

Co-authored-by: Garret Alfert <alfert@wevelop.de>
This commit is contained in:
Basti 2021-11-13 21:53:56 +01:00
parent 54352e09e8
commit f83ef92adc
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72

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];
}