From e111ac413a4a262e13421326b24192aacec4c7c8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 20 Sep 2011 17:15:26 -0600 Subject: [PATCH] Fix #855070 (Article plus punctuation creates bad title sort) --- src/calibre/ebooks/metadata/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/ebooks/metadata/__init__.py b/src/calibre/ebooks/metadata/__init__.py index 07fae187ba..dd90b4c2ec 100644 --- a/src/calibre/ebooks/metadata/__init__.py +++ b/src/calibre/ebooks/metadata/__init__.py @@ -116,6 +116,8 @@ def title_sort(title, order=None): if match: prep = match.group(1) title = title[len(prep):] + ', ' + prep + if title[0] in _ignore_starts: + title = title[1:] return title.strip() coding = zip(