# תגובות בשרשור מוצגות לא לפי הסדר

**URL:** <https://meta.discourse.org/t/replies-in-thread-showing-out-of-order/166512>\
**Category:** Product Support\
**Created:** [7 באוקטובר,‏ 2020,‏ 8:54am UTC](https://meta.discourse.org/t/replies-in-thread-showing-out-of-order/166512 "2020-10-07T08:54:58Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![AJDurant](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ajdurant/32/196334_2.png) [@AJDurant](https://meta.discourse.org/u/AJDurant)\
**Post date:** [30 באוקטובר,‏ 2020,‏ 10:38am UTC](https://meta.discourse.org/t/replies-in-thread-showing-out-of-order/166512/6 "2020-10-30T10:38:12Z")

</div>

Running the query from `posts:reorder_posts` shows that the sort\_order for a number of posts is odd, and looks like the rake should update them, but it does not.

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/0/208a143d21891aecbfe5ecac7ec137a7804da752.png)  
From running:

```SQL
SELECT
id,
post_number,
sort_order,
ROW_NUMBER() OVER (
    PARTITION BY
    topic_id
    ORDER BY
    created_at,
    post_number
) AS new_post_number
FROM
posts

```

---

_[View the full topic](https://meta.discourse.org/t/replies-in-thread-showing-out-of-order/166512)._
