From d0dbabcadefde2cb0e418c671f6335a5c0321c58 Mon Sep 17 00:00:00 2001 From: Michal Fox Date: Fri, 2 Oct 2026 16:44:43 +0200 Subject: [PATCH] fix #8098: ui: ceph: osd: sort by name naturally Sorting the OSD tree by the name column compared the names as plain strings, so 'osd.10' and 'osd.11' ended up before 'osd.8' and 'osd.9', and the same happened for host names like 'pve10' and 'pve2'. Add a sorter to the name column that compares numbers in the names by their value, like it is already done for the storage content view. Signed-off-by: Michal Fox --- www/manager6/ceph/OSD.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js index e7e91eb..b83ddb2 100644 --- a/www/manager6/ceph/OSD.js +++ b/www/manager6/ceph/OSD.js @@ -1202,6 +1202,7 @@ Ext.define('PVE.node.CephOsdTree', { text: 'Name', dataIndex: 'name', width: 150, + sorter: (a, b) => a.data.name.localeCompare(b.data.name, undefined, { numeric: true }), }, { text: 'Type',