# Importing from Vanilla Forums results in out-of-order replies. Re-index Replies?

**URL:** <https://meta.discourse.org/t/importing-from-vanilla-forums-results-in-out-of-order-replies-re-index-replies/208847>\
**Category:** Development\
**Created:** [November 11, 2021, 1:19am UTC](https://meta.discourse.org/t/importing-from-vanilla-forums-results-in-out-of-order-replies-re-index-replies/208847 "2021-11-11T01:19:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Nick\_Chomey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nick_chomey/32/215378_2.png) [@Nick\_Chomey](https://meta.discourse.org/u/Nick_Chomey)\
**Post date:** [November 11, 2021, 1:19am UTC](https://meta.discourse.org/t/importing-from-vanilla-forums-results-in-out-of-order-replies-re-index-replies/208847/1 "2021-11-11T01:19:27Z")

</div>

I have successfully imported an export from Vanilla Forum, but the replies in some Topics are not in the correct order. Sometimes by days, sometimes by years.

The problem appears to be that Vanilla Porter is simply exporting the replies out of order, with no discernable pattern. Then, when the Discourse import script goes line-by-line and puts the record in its appropriate place, the replies receive an out-of-order ID.

I see two possible options:

1. Somehow fix Vanilla Porter
2. Re-index the replies within the Discourse database based on their Create Date

#2 seems like it would be easier to do, if at all possible.

Any suggestions?

---

_[View the full topic](https://meta.discourse.org/t/importing-from-vanilla-forums-results-in-out-of-order-replies-re-index-replies/208847)._
