# New channels listed last in GroupChannelListQuery

**URL:** <https://community.sendbird.com/t/new-channels-listed-last-in-groupchannellistquery/6105>\
**Category:** JavaScript\
**Tags:** group-channel, react-js\
**Created:** [December 6, 2022, 2:44pm UTC](https://community.sendbird.com/t/new-channels-listed-last-in-groupchannellistquery/6105 "2022-12-06T14:44:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MCastanho](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@MCastanho](https://community.sendbird.com/u/MCastanho)\
**Post date:** [December 6, 2022, 2:44pm UTC](https://community.sendbird.com/t/new-channels-listed-last-in-groupchannellistquery/6105/1 "2022-12-06T14:44:43Z")

</div>

**[Problem/Question]**  
When I query my list of group channels, ordered by “latest\_last\_message”, the new channels I haven’t accepted yet are listed last and have “last\_message: null”.  
This is a big inconvenience in my scenario where I’m only querying 10 channels at a time.  
If I have more than 10 “accepted” channels, the “invited” ones will not be returned in the first batch even if they have messages more recent than all of the “accepted channels”.  
I have users with 300+ channels.  
When someone sends them a message on a new channel, they have to scroll to the end of the list to see the new channel.

* * *

**[SDK Version]**  
3.1.29

**[Reproduction Steps]**

- Have a large number of “accepted” Group Channels, all with messages sent a while ago, let’s say 15 “accepted” channels, all of them with messages sent more than 3 days ago
- Be invited to a Group Channel with messages sent in the past 3 days
- Query 10 channels ordered by “latest\_last\_message”

```auto
    const query = sendbird.GroupChannel.createMyGroupChannelListQuery();
    query.includeEmpty = true;
    query.limit = 10;
    query.order = "latest_last_message";
    query.next((channelList, error) => {/* 
        we get 10 channels, ordered by latest_last_message
        but doesn't include the most recent one, which we haven't accepted yet
        but has messages
    */})

```

- Query 10 additional channels

```auto
    query.next((channelList, error) => {/* 
        we get the remaining 6 channels, ordered by latest_last_message
        except the newest channel, not accepted yet
        that comes last in the list
        with last_message: null
        despite the fact that it does have messages
    */})

```

**[Frequency]**  
Always

**[Current impact]**  
Users don’t see the new channels in the list and they may have to scroll through hundreds of channels to find the new ones they have just been invited to.
