From 3ace9a514cd0d021a70adc3cd8edb95521fa7c3a Mon Sep 17 00:00:00 2001 From: GaOrtiga <49285692+GaOrtiga@users.noreply.github.com> Date: Wed, 4 Jan 2023 05:51:23 -0300 Subject: [PATCH] alter ordering of backup offerings (#7044) Co-authored-by: Wei Zhou Co-authored-by: Gabriel Ortiga Fernandes --- ui/src/views/AutogenView.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index a368b22515d..abd29a737ef 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -1161,6 +1161,11 @@ export default { param.loading = false for (const obj in json) { if (obj.includes('response')) { + if (possibleApi === 'listBackupOfferings' && json[obj].backupoffering) { + json[obj].backupoffering.sort((a, b) => { + return a.name > b.name + }) + } for (const res in json[obj]) { if (res === 'count') { continue