Skip to content

Instantly share code, notes, and snippets.

View dazoe's full-sized avatar
🫖
Error 418

Dave Akers dazoe

🫖
Error 418
  • Somewhere, Kansas
  • 00:54 (UTC -06:00)
View GitHub Profile
@briancline
briancline / 0-pvemanagerlib-fix-sorting.diff
Created December 8, 2021 01:46
Proxmox VE - Fix strange ID-based sorting to sort by VM/container names instead
--- /usr/share/pve-manager/js/pvemanagerlib.js 2021-11-24 11:32:51.000000000 -0600
+++ /usr/share/pve-manager/js/bc-pvemanagerlib.js 2021-11-29 15:44:54.070286236 -0600
@@ -3785,7 +3785,7 @@
if (Ext.isNumeric(info.vmid) && info.vmid > 0) {
text = String(info.vmid);
if (info.name) {
- text += " (" + info.name + ')';
+ text = info.name + ' (' + text + ')';
}
} else { // node, pool, storage