From 3f0b9c10ec2177b4dc790a141ce24f235983fe61 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Thu, 25 Jun 2020 10:45:52 +0200 Subject: [PATCH] ui: dashboard: remove 'wobbling' of tasks that have the same duration by sorting them by upid after sorting by duration Signed-off-by: Dominik Csapak --- www/dashboard/LongestTasks.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/www/dashboard/LongestTasks.js b/www/dashboard/LongestTasks.js index 76238e5b..d076d5fa 100644 --- a/www/dashboard/LongestTasks.js +++ b/www/dashboard/LongestTasks.js @@ -56,10 +56,16 @@ Ext.define('PBS.LongestTasks', { type: 'diff', autoDestroy: true, autoDestroyRstore: true, - sorters: { - property: 'duration', - direction: 'DESC', - }, + sorters: [ + { + property: 'duration', + direction: 'DESC', + }, + { + property: 'upid', + direction: 'ASC', + }, + ], rstore: { storeid: 'proxmox-tasks-dash', type: 'store',