Skip to content

Commit 313bb8c

Browse files
committed
Sort team names case-insensitive
1 parent 5d8539e commit 313bb8c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

frontend/src/components/team/TeamNameInput.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ const model = computed(() => {
1818
return store.matchState.teamState![props.team].name
1919
})
2020
const options = computed(() => {
21-
return gcStore.config.teams || []
21+
const teams = [...gcStore.config.teams!]
22+
teams.sort(function (a, b) {
23+
return a.toLowerCase().localeCompare(b.toLowerCase());
24+
})
25+
return teams
2226
})
2327
2428
const updateValue = (value: string) => {

internal/app/engine/config.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"log"
99
"os"
1010
"path/filepath"
11-
"sort"
1211
)
1312

1413
var defaultTeams = []string{
@@ -113,7 +112,6 @@ func (x *Config) ReadFrom(fileName string) (err error) {
113112
for t := range uniqueTeams {
114113
x.Teams = append(x.Teams, t)
115114
}
116-
sort.Strings(x.Teams)
117115

118116
if x.AutoContinue == nil {
119117
x.AutoContinue = defConfig.AutoContinue

0 commit comments

Comments
 (0)