From 189ffbb61a54d3e6ab05e3d02cd71986a07caf7e Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Sun, 8 Oct 2023 13:36:59 -0700 Subject: [PATCH] Sort the friends list on chat --- pkg/controller/chat/chat.go | 2 ++ 1 file changed, 2 insertions(+) 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,