be14edca2a
This code was updated in7b9580df51, which removed support for using kubernetes as orchestrator, but in doing so made this `sort.Slice` (probably) not do what it was expected to do ':) index 412cc2e5ee86..861ae1be2fb9 100644 @@ -75,8 +54,7 @@ func format(dockerCli command.Cli, opts options.List, orchestrator command.Orche } sort.Slice(stacks, func(i, j int) bool { return sortorder.NaturalLess(stacks[i].Name, stacks[j].Name) || - !sortorder.NaturalLess(stacks[j].Name, stacks[i].Name) && - sortorder.NaturalLess(stacks[j].Namespace, stacks[i].Namespace) + !sortorder.NaturalLess(stacks[j].Name, stacks[i].Name) }) return formatter.StackWrite(stackCtx, stacks) } The extra condition was added in84241cc393to support multiple namespaces. This patch removes it, bringing it back to the state it was before that commit. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>