diff --git a/pkg/controller/chat/chat.go b/pkg/controller/chat/chat.go index b4231e7..c5eb4dd 100644 --- a/pkg/controller/chat/chat.go +++ b/pkg/controller/chat/chat.go @@ -156,6 +156,8 @@ func Landing() http.HandlerFunc { friendsOnline = models.FilterFriendUsernames(currentUser, stats.Usernames) ) + sort.Strings(friendsOnline) + var vars = map[string]interface{}{ "ChatAPI": strings.TrimSuffix(config.Current.BareRTC.URL, "/") + "/api/statistics", "IsShyUser": isShy,