fix ordering in posts model