mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #855070 (Article plus punctuation creates bad title sort)
This commit is contained in:
parent
ce84bcd444
commit
e111ac413a
@ -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…
x
Reference in New Issue
Block a user