# API topic post creation ordered by updated\_at or created\_at?

**URL:** <https://meta.discourse.org/t/api-topic-post-creation-ordered-by-updated-at-or-created-at/84511>\
**Category:** Product Support\
**Created:** [April 3, 2018, 11:57pm UTC](https://meta.discourse.org/t/api-topic-post-creation-ordered-by-updated-at-or-created-at/84511 "2018-04-03T23:57:53Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [April 12, 2018, 3:52am UTC](https://meta.discourse.org/t/api-topic-post-creation-ordered-by-updated-at-or-created-at/84511/8 "2018-04-12T03:52:51Z")

</div>

Just wanted to update here in case someone has a lot of posts out of order due to an import or some other reason that there is now a rake task to sort posts by date created.

[https://github.com/discourse/discourse/commit/cf9965fd543543b4d1162adb76f157812f6fbcf8](https://github.com/discourse/discourse/commit/cf9965fd543543b4d1162adb76f157812f6fbcf8)

---

_[View the full topic](https://meta.discourse.org/t/api-topic-post-creation-ordered-by-updated-at-or-created-at/84511)._
