Fix #1069835 (Alphabetical wrong for accented character)

This commit is contained in:
Kovid Goyal 2012-10-22 21:25:27 +05:30
commit 0d532dd522

View File

@ -415,10 +415,10 @@ class TagsModel(QAbstractItemModel): # {{{
if not tag.sort:
c = ' '
else:
c = tag.sort
c = icu_upper(tag.sort)
ordnum, ordlen = collation_order(c)
if last_ordnum != ordnum:
last_c = icu_upper(c[0:ordlen])
last_c = c[0:ordlen]
last_ordnum = ordnum
cl_list[idx] = last_c
top_level_component = 'z' + data[key][0].original_name