Remove unneeded sort

This commit is contained in:
2020-12-05 14:17:47 +00:00
parent 8d2a169ec9
commit 5557eb57e2

View File

@@ -23,7 +23,7 @@ readInterface.on('line', function(line) {
});
readInterface.on('close', function(line) {
let seatIDs = new Set( seats.map((seat) => seat[1]*8 + seat[0]).sort((a,b) => a-b ) );
let seatIDs = new Set( seats.map((seat) => seat[1]*8 + seat[0]) );
for (x=0; x<8; x++) {
for(y=0; y<128; y++) {