Sort the friends list on chat

This commit is contained in:
Noah Petherbridge 2023-10-08 13:36:59 -07:00
parent a16894a1b1
commit 189ffbb61a

View File

@ -156,6 +156,8 @@ func Landing() http.HandlerFunc {
friendsOnline = models.FilterFriendUsernames(currentUser, stats.Usernames) friendsOnline = models.FilterFriendUsernames(currentUser, stats.Usernames)
) )
sort.Strings(friendsOnline)
var vars = map[string]interface{}{ var vars = map[string]interface{}{
"ChatAPI": strings.TrimSuffix(config.Current.BareRTC.URL, "/") + "/api/statistics", "ChatAPI": strings.TrimSuffix(config.Current.BareRTC.URL, "/") + "/api/statistics",
"IsShyUser": isShy, "IsShyUser": isShy,