renpy-encyclopaedia icon indicating copy to clipboard operation
renpy-encyclopaedia copied to clipboard

Question mark (locked) entries at the top when sorting -- Confirmed fix proposition within

Open Yomic opened this issue 2 years ago • 0 comments

When sorting by "A to Z," "Z to A," "Subject," or "Unread" the locked entries denoted by "???" are sorted with the "letter" "?" at the top of the list.

To replicate this issue, unlock at least one entry while leaving a few others locked and sort by any of the above options. The "?" will be sorted above any alphanumeric entries leaving a bunch of locked entries to scroll past first.

Fix:

I fixed this issue on my end by changing this line (line 21) in "entry_sorting_ren.py" from:

new_list = sorted(seq, reverse=True, key=attrgetter('locked'))

to

new_list = sorted(seq, reverse=False, key=attrgetter('locked'))

Yomic avatar Mar 10 '24 18:03 Yomic