Fix bug #1578688: is_multiple non-tag columns are not sorted in book details

This commit is contained in:
Charles Haley 2016-05-14 12:12:20 +02:00
parent 87709271bf
commit 8a799111e3

View File

@ -228,7 +228,7 @@ def mi_to_html(mi, field_list=None, default_author_link=None, use_roman_numbers=
except Exception:
st = field
all_vals = mi.get(field)
if field == 'tags':
if not metadata.get('display', {}).get('is_names', False):
all_vals = sorted(all_vals, key=sort_key)
links = ['<a href="%s" title="%s" data-item="%s">%s</a>' % (
search_href(st, x), _('Click to see books with {0}: {1}').format(