make channel autocomplete sort case-insensitive (#8176)

This commit is contained in:
Chris
2018-01-31 14:57:08 -05:00
committed by Joram Wilander
parent 1262d25473
commit c89cf572f7
+1 -1
View File
@@ -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
})