Small code fix

This commit is contained in:
Silvano Cerza 2022-01-31 16:38:38 +01:00 committed by Silvano Cerza
parent af33dce0f6
commit ef2be1c086

View File

@ -278,8 +278,7 @@ PID: ${PID}`;
// First we show addresses with recognized boards connected,
// then all the rest.
const sortedIDs = Object.keys(ports);
sortedIDs.sort((left: string, right: string): number => {
const sortedIDs = Object.keys(ports).sort((left: string, right: string): number => {
const [, leftBoards] = ports[left];
const [, rightBoards] = ports[right];
return rightBoards.length - leftBoards.length;