mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 04:28:29 -05:00
UX: orders public channels by slug instead of title (#20188)
Public channels were previously sorted by name, however, channels with a leading emoji in the name would always appear first in the list. By using slug we avoid this issue.
This commit is contained in:
@@ -99,7 +99,7 @@ export default class ChatChannelsManager extends Service {
|
||||
(channel) =>
|
||||
channel.isCategoryChannel && channel.currentUserMembership.following
|
||||
)
|
||||
.sort((a, b) => a.title.localeCompare(b.title));
|
||||
.sort((a, b) => a?.slug?.localeCompare?.(b?.slug));
|
||||
}
|
||||
|
||||
get directMessageChannels() {
|
||||
|
||||
Reference in New Issue
Block a user