mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 09:06:11 +01:00
...
This commit is contained in:
parent
ff059b3066
commit
988a383714
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@
|
|||
from calibre.gui2 import error_dialog, choose_files, choose_save_file, info_dialog, choose_images
|
||||
from calibre.gui2.tweak_book import tprefs, current_container
|
||||
from calibre.gui2.widgets2 import Dialog as BaseDialog
|
||||
from calibre.utils.icu import primary_sort_key, sort_key, primary_contains
|
||||
from calibre.utils.icu import primary_sort_key, sort_key, primary_contains, numeric_sort_key
|
||||
from calibre.utils.matcher import get_char, Matcher
|
||||
from calibre.gui2.complete2 import EditWithComplete
|
||||
|
||||
|
|
@ -706,7 +706,7 @@ def populate_anchors(self, name):
|
|||
continue
|
||||
text = lead_text(item, num_words=4)
|
||||
ac.append((text, frag))
|
||||
ac.sort(key=lambda text_frag: primary_sort_key(text_frag[0]))
|
||||
ac.sort(key=lambda text_frag: numeric_sort_key(text_frag[0]))
|
||||
self.anchor_names.model().set_names(self.anchor_cache[name])
|
||||
self.update_target()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue