without this, jobs without comments will not be included in the sort
properly

Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
---
 www/manager6/dc/Backup.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index 3f250a76..c25a127e 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -749,6 +749,7 @@ Ext.define('PVE.dc.BackupView', {
                    header: gettext('Comment'),
                    dataIndex: 'comment',
                    renderer: Ext.htmlEncode,
+                   sorter: (a, b) => (a.data.comment || 
'').localeCompare(b.data.comment || ''),
                    flex: 1,
                },
                {
-- 
2.30.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to