sort questions by alphabet, not by ascii numeric value

Bug #1860881 reported by themusicgod1
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mnemosyne (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

1) control-B to bring up the Browse Cards menu
2) start typing into the text field to bring up some results
3) click on 'Question' heading to sort by question

what should happen:
sort alphabetically the questions, usually words that contain the text what you are looking for

what does happen:
sorts alphabetically BUT the capital letters come first, as they have a lower numeric value in ascii (and probably unicode).

rationale:
mnemosyne primarily deals with words, and when we're sorting words, as human beings, we shouldn't have to care how they are represented in ascii/unicode, only the alphabetical ordering.

possible solution:
throw a 'tolower' in the mix somewhere to make case not matter on sort

mnemosyne:
  Installed: 2.4-0.1
  Candidate: 2.4-0.1

ubuntu: 18.04 LTS bionic

Tags: bionic
Revision history for this message
Peter Bienstman (peter-bienstman) wrote :

For speed reasons, we use the native C sort code of sqlite browser. Adding a custom Python sorting routine would result in too much slowdown.

Changed in mnemosyne (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.