clean some code and added order by title to the list of posts