clean up model attributes. sort by date for posts