Fix order of post in database