Auto-complete: case-insensitive duplicate removal and option to sort aphabetically
Created by: michaelroland
This PR implements feature requests #15 and #16 (closed).
#15)
Pruning of duplicates (This patch performs case-insensitive comparisons when removing duplicate entries in the result of auto-complete searches. Moreover, it makes sure that duplicate removal obeys the popularity index (i.e. the highest popularity index of all duplicates is used).
#16 (closed))
Options to sort alphabetically (This patch adds an option (boolean configuration value "extensions.cardbook.autocompleteSortByPopularity") that allows the user to choose between two sorting styles of the auto-complete results:
- Value is
true
(default): The search results are sorted by their popularity index (same as in existing version). Additionally, the results are sorted alphabetically within each popularity level (new). - Value is
false
: The polularity index is ignored and search results are only sorted alphabetically.