revert column defaults,keep general desc default order

This commit is contained in:
Christoph Kluge
2026-01-31 20:34:16 +01:00
parent 1791e665aa
commit b7bd8210e5

View File

@@ -72,22 +72,8 @@
// Same Field, Change Direction
sorting = { field: newField, direction: sorting.direction == "desc" ? "asc" : "desc" };
} else {
// Change Field, Apply Field Dependent Default
switch (newField) {
case "id":
case "name":
case "totalJobs":
case "totalWalltime":
// Change Field, Apply Default Direction
sorting = { field: newField, direction: "desc" };
break
case "totalCoreHours":
case "totalAccHours":
sorting = { field: newField, direction: "asc" };
break
default:
// Fallback: Change only Field
sorting = { field: newField, direction: sorting.direction };
}
}
}