function sorted(id) {
for (var c = document.getElementById(id), b = c.options, a = 0; a < b.length - 1;) {
let l = parseFloat(b[a].value),
r = parseFloat(b[a + 1].value);
if (!isNaN(l) && !isNaN(r) && b[a + 1] && (l > r && l > 0 && r > 0) || (l < r && l < 0 && r < 0) || (l < 0 && r >= 0)) {
c.insertBefore(b[a + 1], b[a]);
a = a >= 1 ? a - 1 : a + 1
} else a++;
b[0].selected = true
}
};
sorted("26-disk");