mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-20 11:16:07 +01:00
py3: Fix sorting on comments and identifiers fields
This commit is contained in:
parent
c6d993cfdd
commit
cb117bf118
1 changed files with 2 additions and 0 deletions
|
|
@ -69,6 +69,8 @@ def __init__(self, name, table, bools_are_tristate, get_template_functions):
|
|||
elif self.metadata['is_custom']:
|
||||
fmt = self.metadata.get('display', {}).get('date_format', None)
|
||||
self._sort_key = partial(clean_date_for_sort, fmt=fmt)
|
||||
elif dt == 'comments' or name == 'identifiers':
|
||||
self._default_sort_key = ''
|
||||
|
||||
if self.name == 'languages':
|
||||
self._sort_key = lambda x:sort_key(calibre_langcode_to_name(x))
|
||||
|
|
|
|||
Loading…
Reference in a new issue