sort devices by deviceId in device tree (#20)
* sort devices by deviceId in device tree * format code
This commit is contained in:
Родитель
6e2afb1e95
Коммит
4ddda084ab
|
@ -71,7 +71,7 @@ export class DeviceTree implements vscode.TreeDataProvider<vscode.TreeItem> {
|
|||
arguments: [device.deviceId],
|
||||
}));
|
||||
});
|
||||
resolve(devices);
|
||||
resolve(devices.sort((a, b) => { return a.deviceId < b.deviceId ? -1 : 1; }));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче