# 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:** 1

<div class="post-metadata">

**Author:** ![michael.smith](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michael.smith/32/93123_2.png) [@michael.smith](https://meta.discourse.org/u/michael.smith)\
**Post date:** [April 3, 2018, 11:57pm UTC](https://meta.discourse.org/t/api-topic-post-creation-ordered-by-updated-at-or-created-at/84511/1 "2018-04-03T23:57:53Z")

</div>

I am creating a lot of topics with posts from an older system. The topics are from a few years ago and the posts within the topics the same.  
What I am finding is that the posts associated with the topic show the correct time of `created_at` but seem to order by `updated_at`.  
`updated_at` is the date and time that I created the post within my script which is not necessarily the order that they should be displayed.  
I am using the [discourse\_api](https://github.com/discourse/discourse_api) gem for all the Discourse work.

Is there a way to solve this? Or am I seeing this wrong? Or is there a setting that I can chage to display them in the correct order?

Thanks  
Michael

---

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