# Bugs: Possibly same Threads fetched across different pages

**URL:** <https://forums.nylas.com/t/bugs-possibly-same-threads-fetched-across-different-pages/812>\
**Category:** Question and Answers\
**Created:** [July 22, 2025, 7:46am UTC](https://forums.nylas.com/t/bugs-possibly-same-threads-fetched-across-different-pages/812 "2025-07-22T07:46:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![92.alphas\_cranes](https://avatars.discourse-cdn.com/v4/letter/9/b4bc9f/32.png) [@92.alphas\_cranes](https://forums.nylas.com/u/92.alphas_cranes)\
**Post date:** [July 22, 2025, 7:46am UTC](https://forums.nylas.com/t/bugs-possibly-same-threads-fetched-across-different-pages/812/1 "2025-07-22T07:46:00Z")

</div>

We’ve encountered a problem while using the\* _ **Return All Threads API** _ \*. Specifically, it seems possible for the same thread to appear twice across different pages of results. This seems to happen when a thread contains emails that are far apart in time (e.g., the first email is from two months ago, and the reply was sent today). In this case, the first API request retrieves the thread because of today’s email, and a later API request (e.g., page N) might retrieve the same thread again when it reaches the email from two months ago.  
Until now it’s still not clear to me in which sorting order the threads returned by the Return All Threads endpoint. Is it possible to define a strict sorting order on the API side (e.g., database-level sorting) to ensure that threads cannot appear twice across pages?

---

<div class="post-metadata">

**Author:** ![sam](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.nylas.com/sam/32/287_2.png) [@sam](https://forums.nylas.com/u/sam)\
**Post date:** [July 23, 2025, 3:55pm UTC](https://forums.nylas.com/t/bugs-possibly-same-threads-fetched-across-different-pages/812/2 "2025-07-23T15:55:57Z")

</div>

What provider are you using? Is this for IMAP or a different service?

---

<div class="post-metadata">

**Author:** ![92.alphas\_cranes](https://avatars.discourse-cdn.com/v4/letter/9/b4bc9f/32.png) [@92.alphas\_cranes](https://forums.nylas.com/u/92.alphas_cranes)\
**Post date:** [July 24, 2025, 6:43am UTC](https://forums.nylas.com/t/bugs-possibly-same-threads-fetched-across-different-pages/812/3 "2025-07-24T06:43:09Z")

</div>

the problem is with outlook email, EWS I guess?

---

<div class="post-metadata">

**Author:** ![akay](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@akay](https://forums.nylas.com/u/akay)\
**Post date:** [October 30, 2025, 7:43pm UTC](https://forums.nylas.com/t/bugs-possibly-same-threads-fetched-across-different-pages/812/4 "2025-10-30T19:43:45Z")

</div>

Hey @92.alphas_cranes ,

I wanted to check in to see if you’re still experiencing this issue, we have made numerous improvements so hoping it resolves your issue but if not please let us know and we’ll escalate it internally
