* [PATCH manager] fix #8098: ui: ceph: osd: sort OSDs naturally by name
@ 2026-10-09 0:43 Kefu Chai
0 siblings, 0 replies; only message in thread
From: Kefu Chai @ 2026-10-09 0:43 UTC (permalink / raw)
To: pve-devel
Sorting the OSD tree by its Name column compared plain strings, so
osd.10 came before osd.8. The tree saves its sort state, so the wrong
order also survived reloads.
Compare names with localeCompare's numeric option, as
storage/ContentView.js already does. OSDs now sort by ID, and hosts
like pve2 and pve10 sort by number as well.
Signed-off-by: Kefu Chai <k.chai@proxmox.com>
---
www/manager6/ceph/OSD.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index e7e91eba..4c2face6 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -1202,6 +1202,10 @@ Ext.define('PVE.node.CephOsdTree', {
text: 'Name',
dataIndex: 'name',
width: 150,
+ sorter: {
+ sorterFn: (a, b) =>
+ a.data.name.localeCompare(b.data.name, undefined, { numeric: true }),
+ },
},
{
text: 'Type',
--
2.47.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-09 0:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-09 0:43 [PATCH manager] fix #8098: ui: ceph: osd: sort OSDs naturally by name Kefu Chai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.