Skip to content

Auto-complete: case-insensitive duplicate removal and option to sort aphabetically

CardBook requested to merge michaelroland:autocomplete-sort-order into master

Created by: michaelroland

This PR implements feature requests #15 and #16 (closed).

Pruning of duplicates (#15)

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).

Options to sort alphabetically (#16 (closed))

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.

Merge request reports