Proper sorting for posts on main page.