element-hq / element-hq/element-web

Users of a same "rank" in the user list are ordered randomly instead of alphabetically

Open
#29,380 2 comments 0 reactions 0 assignees View on GitHub
A-Member-List O-Frequent S-Minor T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

Users are ordered randomly in the userlist.
Administrators and moderators are at the top as expected, and offline users are at the bottom, but within the same "rank" users are just kind of scrambled in a random order instead of being in alphabetical order.
That order also regularly (when someone logs on/off and the userlist updates, maybe?) updates into different random orders. Here's how the 10 first users are ordered, in the user list of the same channel at few minutes interval - the top 2 users being admins:

![Image](https://github.com/user-attachments/assets/4abb5472-a2d4-4e57-a311-f7b6635f3dad) ![Image](https://github.com/user-attachments/assets/5d4615a4-90d6-4210-84d2-f8db22311733) ![Image](https://github.com/user-attachments/assets/1c893054-6d88-4dae-9e8e-ded762fa1ceb)

### Outcome

#### What did you expect?
Users to be ordered alphabetically.

#### What happened instead?
Users are ordered randomly.

### Operating system

Windows 10

### Application version

Element 1.11.93

### How did you install the app?

_No response_

### Homeserver

_No response_

### Will you send logs?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.