From adc3761bfc868f0349e238769871070b8ca18ab2 Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Fri, 9 Sep 2016 01:09:14 -0400 Subject: [PATCH] Doc page for scheduler is not stable (for man pages) Need to sort maps --- plugin/pkg/scheduler/factory/plugins.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/pkg/scheduler/factory/plugins.go b/plugin/pkg/scheduler/factory/plugins.go index e6bcdefb9a3..8b80e884910 100644 --- a/plugin/pkg/scheduler/factory/plugins.go +++ b/plugin/pkg/scheduler/factory/plugins.go @@ -19,6 +19,7 @@ package factory import ( "fmt" "regexp" + "sort" "strings" "sync" @@ -317,5 +318,6 @@ func ListAlgorithmProviders() string { for name := range algorithmProviderMap { availableAlgorithmProviders = append(availableAlgorithmProviders, name) } + sort.Strings(availableAlgorithmProviders) return strings.Join(availableAlgorithmProviders, " | ") }