Rocket.chat: [Improvment] Sorting in private message list

Created on 5 Mar 2018  路  4Comments  路  Source: RocketChat/Rocket.Chat

Description:

If you sort your private messages alphabetically, the sorting is not correct. Capital letters are ranked higher, as the following example shows.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.62.1

Steps to Reproduce:

  1. Create two users: aabc and Abc
  2. Start private conversations with them
  3. Have a look in the left sidebar

Expected behavior:

Ranking:

  • aabc
  • Abc

Actual behavior:

Ranking:

  • Abc
  • aabc

Real world example in open.rocket.chat:

rocket_chat_

uux bug

All 4 comments

You don't assign issues in GitHub. Just let people know you are working on it and then submit a PR.

Hi @vishwakperera we gladly accept a PR for this one. Just check with @karlprieb if you need any help.

I was seeing the code which sorts the DM list and discovered that it is sorted by mongo. When I searched about it, I discovered that mongo doesn't currently support case-insensitive sorting. So I was wondering if sorting it on the client side is a good option. What do you think?

we could improve this PR https://github.com/RocketChat/Rocket.Chat/pull/9959

and insert one more attribute nameLowercase or blablabla transforming username/name to lowercase... @karlprieb what do you think?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

djeber picture djeber  路  3Comments

antn89 picture antn89  路  3Comments

zeigerpuppy picture zeigerpuppy  路  3Comments

lunitic picture lunitic  路  3Comments

Buzzele picture Buzzele  路  3Comments