feat(calc): add toggle to prioritize Ingglish matches to top of query results
- Add optPrioritizeIngglish option (configurable via prioritizeIngglishMatches in config.default.js and persisted in localStorage via calcOptionsArr). - Add 'Prioritize Ingglish [...]' checkbox (chkbox_PIM / conf_PIM()) to the Options Menu and a one-click 'ING ↑' toggle button (queryIngPriorityBtn) inside the Match Results table header that re-sorts open query modals in place via refreshOpenQuery(). - Unify match sorting in calc/database.js under compareQueryMatches(a, b, searchPhrase): pins exact full or comment-stripped phrase matches first, sorts [Ingglish: ...] rows above standard entries when optPrioritizeIngglish is enabled, and preserves score ordering within each group.
This commit is contained in:
1 parent
bae8a992dc
commit
72c696420f
5 files changed
+71
-14
No files matched your search
@@ -2,3 +2,4 @@ config.js
|
||||
db.json
|
||||
__pycache__/
|
||||
*.pyc
|
||||
db_lite.json
|
||||
Reference in new issue
Block a user