Fix hdd sorting for >10 hdds (#163)
This commit is contained in:
parent
6a27678594
commit
ea98856365
@ -1218,7 +1218,7 @@ generate_hdd_widget() {
|
||||
} catch(e) {
|
||||
objValue = {};
|
||||
}
|
||||
const drvKeys = Object.keys(objValue).filter(item => String(item).startsWith(addressPrefix)).sort();
|
||||
const drvKeys = Object.keys(objValue).filter(item => String(item).startsWith(addressPrefix)).sort((a, b) => a.localeCompare(b, undefined, { numeric: true, sensitivity: 'base' }));
|
||||
let temps = [];
|
||||
drvKeys.forEach((drvKey, index) => {
|
||||
try {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user