mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 06:33:15 +02:00
Fix sorting by title to correctly handle cases like The Thexxx
This commit is contained in:
parent
8c350fb8cb
commit
a12b6d043c
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue