Sort bugfix, title detection improved