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