Fix hdd sorting for >10 hdds (#163)

This commit is contained in:
Meliox authored and GitHub committed 2026-05-11 20:00:53 +02:00
1 parent 6a27678594
commit ea98856365
1 file changed
+1 -1
+1 -1
View File
@@ -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 {