# 聊天频道名称以表情符号开头时顺序混乱

**URL:** <https://meta.discourse.org/t/confusing-chat-channel-order-when-name-starts-with-emoji/253849>\
**Category:** UX\
**Tags:** chat\
**Created:** [2023年二月2日 12:46 UTC](https://meta.discourse.org/t/confusing-chat-channel-order-when-name-starts-with-emoji/253849 "2023-02-02T12:46:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon\_tomes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon_tomes/32/457537_2.png) [@simon\_tomes](https://meta.discourse.org/u/simon_tomes)\
**Post date:** [2023年二月2日 12:46 UTC](https://meta.discourse.org/t/confusing-chat-channel-order-when-name-starts-with-emoji/253849/1 "2023-02-02T12:46:25Z")

</div>

我在每个频道标题的开头都使用了一个表情符号。也许这就是为什么我看到的版本不是按逻辑/字母顺序排列的原因。

 ![Screenshot 2023-02-02 at 12.45.01](https://global.discourse-cdn.com/meta/original/4X/1/9/9/199da60ed09faac88b3ff1adbfdca5683341b189.png)

---

<div class="post-metadata">

**Author:** ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)\
**Post date:** [2023年二月2日 15:58 UTC](https://meta.discourse.org/t/confusing-chat-channel-order-when-name-starts-with-emoji/253849/2 "2023-02-02T15:58:12Z")

</div>

是的，我认为你是对的。

我想知道我们是否应该按 slug 而不是名称来排序频道？

---

<div class="post-metadata">

**Author:** ![simon\_tomes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon_tomes/32/457537_2.png) [@simon\_tomes](https://meta.discourse.org/u/simon_tomes)\
**Post date:** [2023年二月2日 16:42 UTC](https://meta.discourse.org/t/confusing-chat-channel-order-when-name-starts-with-emoji/253849/4 "2023-02-02T16:42:08Z")

</div>

谢谢，@mcwumbly。

> [@mcwumbly](#):
>
> 按 slug 而不是按名称排序频道

我认为这会起作用。👍

---

<div class="post-metadata">

**Author:** ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)\
**Post date:** [2023年二月3日 01:54 UTC](https://meta.discourse.org/t/confusing-chat-channel-order-when-name-starts-with-emoji/253849/5 "2023-02-03T01:54:15Z")

</div>

帖子已拆分为新主题：[自定义侧边栏标签顺序的功能](https://meta.discourse.org/t/ability-to-customize-the-order-of-tags-in-sidebar/253905)

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [2023年二月7日 10:10 UTC](https://meta.discourse.org/t/confusing-chat-channel-order-when-name-starts-with-emoji/253849/9 "2023-02-07T10:10:35Z")

</div>

我刚刚推送了一个更改，现在将使用 slug 进行排序，而不是使用名称：

> <https://github.com/discourse/discourse/commit/f4b56ea4552b3f104ab85c7749a876ad82308971>
>
> 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.

你可能需要更新你的 slug，因为它们可能包含表情符号的文本版本。

---

<div class="post-metadata">

**Author:** ![simon\_tomes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon_tomes/32/457537_2.png) [@simon\_tomes](https://meta.discourse.org/u/simon_tomes)\
**Post date:** [2023年二月8日 10:17 UTC](https://meta.discourse.org/t/confusing-chat-channel-order-when-name-starts-with-emoji/253849/10 "2023-02-08T10:17:24Z")

</div>

感谢您的修复，@j.jaffeux。

这边看起来不错。

 ![Screenshot 2023-02-08 at 10.16.12](https://global.discourse-cdn.com/meta/original/4X/1/b/a/1ba699ab87ea4ebd2c0d9790a6b863643c80868e.png)

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [2023年二月8日 10:22 UTC](https://meta.discourse.org/t/confusing-chat-channel-order-when-name-starts-with-emoji/253849/11 "2023-02-08T10:22:44Z")

</div>

很高兴听到这个消息，感谢更新！

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [2023年二月13日 07:00 UTC](https://meta.discourse.org/t/confusing-chat-channel-order-when-name-starts-with-emoji/253849/12 "2023-02-13T07:00:39Z")

</div>

此主题已在 5 天后自动关闭。不再允许回复。
