Skip to content

Commit

Permalink
fix(welcome): stable model list
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed Apr 2, 2024
1 parent 84e0dc3 commit 97745df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/config/backend_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"math/rand"
"os"
"path/filepath"
"sort"
"strings"
"sync"

Expand Down Expand Up @@ -455,6 +456,11 @@ func (cl *BackendConfigLoader) GetAllBackendConfigs() []BackendConfig {
for _, v := range cl.configs {
res = append(res, v)
}

sort.SliceStable(res, func(i, j int) bool {
return res[i].Name < res[j].Name
})

return res
}

Expand Down

0 comments on commit 97745df

Please sign in to comment.