diff --git a/src/calibre/ebooks/metadata/__init__.py b/src/calibre/ebooks/metadata/__init__.py index 7a53abb067..1e62cffd0f 100644 --- a/src/calibre/ebooks/metadata/__init__.py +++ b/src/calibre/ebooks/metadata/__init__.py @@ -46,6 +46,7 @@ def authors_to_sort_string(authors): return ' & '.join(map(author_to_author_sort, authors)) _title_pat = re.compile('^(A|The|An)\s+', re.IGNORECASE) + def title_sort(title): match = _title_pat.search(title) if match: