Prevent sorting by '-audio' citation and lexeme forms by imnasnainaec · Pull Request #1807 · sillsdev/web-languageforge
Fixes issue where words are sorted by audio filenames if the first analysis writing system is an audio one.
Description
The default sort uses the first lexeme form (if no citation form is present) which is a problem if the first analysis writing system is an audio writing system. Then the entries are sorted by the filename, which results in a meaningless sort. This pr prevents '-audio' citation forms and lexeme forms from being used.
Checklist
- I have labeled my PR with: bug, feature, engineering, security fix or testing
- I have performed a self-review of my own code
- I have reviewed the title & description of this PR which I will use as the squashed PR commit message
- I have commented my code, particularly in hard-to-understand areas
- I have added tests that prove my fix is effective or that my feature works
- I have enabled auto-merge (optional)
Testing
Testers, use the following instructions against our staging environment. Post your findings as a comment and include any meaningful screenshots, etc.
Describe how to verify your changes and provide any necessary test data.
- Test A