mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-22 05:04:08 +02:00
Fix #855070 (Article plus punctuation creates bad title sort)
This commit is contained in:
parent
ce84bcd444
commit
e111ac413a
1 changed files with 2 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue