mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix sorting by title to correctly handle cases like The Thexxx
This commit is contained in:
parent
8c350fb8cb
commit
a12b6d043c
@ -41,7 +41,7 @@ def title_sort(title):
|
|||||||
match = _title_pat.search(title)
|
match = _title_pat.search(title)
|
||||||
if match:
|
if match:
|
||||||
prep = match.group(1)
|
prep = match.group(1)
|
||||||
title = title.replace(prep, '') + ', ' + prep
|
title = title[len(prep):] + ', ' + prep
|
||||||
return title.strip()
|
return title.strip()
|
||||||
|
|
||||||
coding = zip(
|
coding = zip(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user