From a73da88526b9b5e5ccc566e39967a996d595537a Mon Sep 17 00:00:00 2001 From: Japsty Date: Mon, 9 Sep 2024 17:16:49 +0300 Subject: [PATCH] status: added output sort Output of tt status was not sorted by instance name, so added sorting in ascending order. --- cli/status/status.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/status/status.go b/cli/status/status.go index c651552f6..45fee1d3a 100644 --- a/cli/status/status.go +++ b/cli/status/status.go @@ -51,6 +51,7 @@ func Status(runningCtx running.RunningCtx, opts StatusOpts) error { } ts.AppendRow(row) } + ts.SortBy([]table.SortBy{{Name: "INSTANCE", Mode: table.Asc}}) if opts.Pretty { ts.SetStyle(table.StyleRounded)