Skip to content

Sort channel names the same way as Zulip web #1165

Open
@gnprice

Description

@gnprice

On the subscriptions / channels page, the sorting of channels by name doesn't fully match the behavior we have in the Zulip web app. In particular, we got a user report that names starting with an emoji are being sorted to the end, while they appear at the beginning in Zulip web.

We should match the ordering of Zulip web, so that people see their channels in the same order when they move between using Zulip on one platform vs. another.

If doing so exactly is impractical or difficult, then we should (a) do a hack that at least handles an emoji at the start of the name, matching Zulip web's ordering for emoji vs. non-emoji and for emoji vs. other emoji; and (b) file a follow-up issue for matching the ordering exactly.

Implementation

The name isn't the only key that the subscriptions / channels list is sorted by; it's also sorted by the channel's status as pinned and/or muted. The role of pinning and muting should remain unchanged.

This issue applies to everywhere a list of channels appears. That means:

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-homeThe home screens of the app; finding and starting conversationsa-i18nTranslation, localization, internationalizationupstreamWould benefit from work in Flutter or another upstream

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions