mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
py3: Fix sorting on comments and identifiers fields
This commit is contained in:
parent
c6d993cfdd
commit
cb117bf118
@ -69,6 +69,8 @@ class Field(object):
|
||||
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…
x
Reference in New Issue
Block a user