[VOL-4667] Implemented default ordering in voltctl for device, logicaldevice and flows list commands output
Change-Id: I0e4b3271a1e15d8f1ba065f244f0181140c4775d
diff --git a/internal/pkg/commands/flows.go b/internal/pkg/commands/flows.go
index 378d01d..ee780e7 100644
--- a/internal/pkg/commands/flows.go
+++ b/internal/pkg/commands/flows.go
@@ -69,6 +69,7 @@
"ClearActions": 1020,
"MeterId": 1030,
}
+ DEFAULT_FLOWS_ORDER = "Id"
)
/*
@@ -157,7 +158,7 @@
orderBy := options.OrderBy
if orderBy == "" {
- orderBy = GetCommandOptionWithDefault(options.Method, "order", "")
+ orderBy = GetCommandOptionWithDefault(options.Method, "order", DEFAULT_FLOWS_ORDER)
}
result := CommandResult{