From be26f80f03d588a098758d2deaf212cb0bc35050 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Thu, 30 Dec 2021 01:07:21 +0100 Subject: [PATCH] fix: maintain sorted output --- cli/app/list.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/app/list.go b/cli/app/list.go index 91404902..912d4f07 100644 --- a/cli/app/list.go +++ b/cli/app/list.go @@ -200,7 +200,10 @@ can take some time. allStats[app.Server] = stats } - for serverName, serverStat := range allStats { + for _, app := range apps { + serverName := app.Server + serverStat := allStats[serverName] + tableCol := []string{"recipe", "app name", "domain"} if status { tableCol = append(tableCol, []string{"status", "version", "upgrade"}...)