Fetch users list in alphabetical order currently it's fetching based on recent conversation order

I want to fetch users list based on alphabetical order and I am using react-chat-uikit. It’s fetching list on the basis of a recent conversation.

Hello @amitchauh4n,

The user list is by default sorted in order of user’s status, user’s name and then user’s uid.

Hope this helps.

If i just want to fetch in order of user’s name should i have to pass any props ?

Hi @amitchauh4n,

There isn’t any way to override the default order at the moment.

Please follow the feature request to stay updated on the progress:

https://feedback.cometchat.com/cometchat-pro-feature-requests/p/ability-to-fetch-users-ordered-by-name

Warm Regards,

Ketan Yekale
CometChat Pro

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.