From 7b1e26699db2866ed7ccbc39c02a60e34e9550d1 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 23 Jun 2020 12:09:47 +0200 Subject: [PATCH] ui: fix sorting of backup snapshots we have to sort the treestore not the original store where we get the data Signed-off-by: Dominik Csapak --- www/DataStoreContent.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/DataStoreContent.js b/www/DataStoreContent.js index 97039716..38daf876 100644 --- a/www/DataStoreContent.js +++ b/www/DataStoreContent.js @@ -55,11 +55,15 @@ Ext.define('PBS.DataStoreContent', { this.store = Ext.create('Ext.data.Store', { model: 'pbs-data-store-snapshots', - sorters: 'backup-group', groupField: 'backup-group', }); this.store.on('load', this.onLoad, this); + view.getStore().setSorters([ + 'backup-group', + 'text', + 'backup-time' + ]); Proxmox.Utils.monStoreErrors(view, view.store, true); this.reload(); // initial load },