Added a sorted_posts() method to the User model class.