sort questions by alphabet, not by ascii numeric value
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
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.