added sorted posts method to page model