diff --git a/src/calibre/ebooks/metadata/__init__.py b/src/calibre/ebooks/metadata/__init__.py index 7b2f5e6960..332ae79afb 100644 --- a/src/calibre/ebooks/metadata/__init__.py +++ b/src/calibre/ebooks/metadata/__init__.py @@ -41,7 +41,7 @@ def title_sort(title): match = _title_pat.search(title) if match: prep = match.group(1) - title = title.replace(prep, '') + ', ' + prep + title = title[len(prep):] + ', ' + prep return title.strip() coding = zip(