fix hdd sorting

This commit is contained in:
Meliox 2026-05-05 21:01:12 +02:00
parent b2bf77dad3
commit 8b868cf32c

View File

@ -1218,7 +1218,7 @@ generate_hdd_widget() {
} catch(e) { } catch(e) {
objValue = {}; 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 = []; let temps = [];
drvKeys.forEach((drvKey, index) => { drvKeys.forEach((drvKey, index) => {
try { try {