# Pagination problem when using metadata\_order\_key

**URL:** <https://community.sendbird.com/t/pagination-problem-when-using-metadata-order-key/9620>\
**Category:** API\
**Tags:** group-channel\
**Created:** [June 4, 2024, 5:25am UTC](https://community.sendbird.com/t/pagination-problem-when-using-metadata-order-key/9620 "2024-06-04T05:25:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hasang\_Jeong](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/hasang_jeong/32/5138_2.png) [@Hasang\_Jeong](https://community.sendbird.com/u/Hasang_Jeong)\
**Post date:** [June 4, 2024, 5:25am UTC](https://community.sendbird.com/t/pagination-problem-when-using-metadata-order-key/9620/1 "2024-06-04T05:25:32Z")

</div>

**[Problem/Question]**  
// Detailed description of issue.  
When using [list-group-channel API](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-group-channels) with parameters ‘order’ and ‘metadata\_order\_key’, pagination does not seem to work properly.  
With those parameter and token, api return empty channels. If ‘order’ and ‘metadata\_order\_key’ parameters are excluded, it works as expected when call with token.

* * *

// If problem, please fill out the below. If question, please delete.  
**[SDK Version]**  
// What version of the SDK are you using?  
v3

**[Reproduction Steps]**  
// Please provide reproduction steps and, if possible, code snippets.  
Compare results when list group channel with two parameters below

```auto
    token
    limit: 100,
    show_member: true,
    show_metadata: true,
    metacounter_key: 'last_action_timestamp',
    metacounter_value_lt: `${weekagoEpoch}`,
    metadata_order_key: 'last_action_timestamp',
    order: 'metadata_value_alphabetical',

```

vs

```auto
    token
    limit: 100,
    show_member: true,
    show_metadata: true,
    metacounter_key: 'last_action_timestamp',
    metacounter_value_lt: `${weekagoEpoch}`,

```

**[Frequency]**  
// How frequently is this issue occurring?  
Always

**[Current impact]**  
// How is this currently impacting your implementation?  
Can access only first page of list-group-channel
