implementing sorting when a collection is listed; default is sort by title.