From c89cf572f7bd22f1e64046b28552dc2e934010ba Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 31 Jan 2018 13:57:08 -0600 Subject: make channel autocomplete sort case-insensitive (#8176) --- store/sqlstore/channel_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'store') diff --git a/store/sqlstore/channel_store.go b/store/sqlstore/channel_store.go index c2979526c..75a615aee 100644 --- a/store/sqlstore/channel_store.go +++ b/store/sqlstore/channel_store.go @@ -1293,7 +1293,7 @@ func (s SqlChannelStore) AutocompleteInTeam(teamId string, term string) store.St } sort.Slice(channels, func(a, b int) bool { - return channels[a].DisplayName < channels[b].DisplayName + return strings.ToLower(channels[a].DisplayName) < strings.ToLower(channels[b].DisplayName) }) result.Data = &channels }) -- cgit v1.2.3-1-g7c22