From 94481f6678d1e9bb5201f32155abdbf6aa8b9f5d Mon Sep 17 00:00:00 2001 From: sambrolia Date: Tue, 15 Sep 2020 21:55:23 +0100 Subject: [PATCH] Sort plugin name lists for output (#8127) --- config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index bc8691dac..4fd65139e 100644 --- a/config/config.go +++ b/config/config.go @@ -210,7 +210,7 @@ func (c *Config) OutputNames() []string { return PluginNameCounts(name) } -// PluginNameCounts returns a list of plugin names and their count +// PluginNameCounts returns a list of sorted plugin names and their count func PluginNameCounts(plugins []string) []string { names := make(map[string]int) for _, plugin := range plugins { @@ -226,6 +226,7 @@ func PluginNameCounts(plugins []string) []string { } } + sort.Strings(namecount) return namecount }