# 邮件列表导入：帖子顺序错乱

**URL:** <https://meta.discourse.org/t/mailing-list-import-posts-out-of-order/95078>\
**Category:** Support\
**Created:** [2018年八月19日 02:37 UTC](https://meta.discourse.org/t/mailing-list-import-posts-out-of-order/95078 "2018-08-19T02:37:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [2018年八月19日 09:34 UTC](https://meta.discourse.org/t/mailing-list-import-posts-out-of-order/95078/2 "2018-08-19T09:34:31Z")

</div>

There’s a rake task for sorting posts within a topic, but I do not recommend using it on more than a couple of topics as long as you still have a chance to fix the order within the import script.

```
rake posts:reorder_posts[topic_id]

```

Out of curiosity: Did you follow [Migrate a mailing list to Discourse (mbox, Listserv, Google Groups, etc)](https://meta.discourse.org/t/importing-mailing-lists-mbox-listserv-emails/79773)?  
Would you mind sending me a PM with the source of all the emails in that topic? I’d like to take a look why the import script isn’t sorting the emails correctly.

---

_[View the full topic](https://meta.discourse.org/t/mailing-list-import-posts-out-of-order/95078)._
