[pve-devel] [PATCH manager 2/5] ui: dc/Backup: fix comment sort

Dominik Csapak d.csapak at proxmox.com
Thu Nov 11 12:07:06 CET 2021


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

Signed-off-by: Dominik Csapak <d.csapak at 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






More information about the pve-devel mailing list