field autocomplete should prioritize exact matches over substring matches

XMLWordPrintable

      Issue Summary

      Currently, when typing a value in the Component field, the autocomplete suggestions do not prioritize exact matches. Instead, substring matches may appear above the exact match, making it harder to quickly select the intended value.

      Steps to Reproduce

      1. For example, when typing payment in the Component field, the autocomplete dropdown returns:
        1. cross-payment ← substring match ranked first
        1. payment ← exact match ranked second
        1. payment-gateway
        1. payment-processing
        1. payment-refunds

      Expected Results

      When typing an exact component name in the Component field, the exact match should appear as the first result in the autocomplete dropdown, above any substring or partial matches.

      Actual Results

       

      Actual Results:
      The exact match is ranked below substring matches. In the example above, typing payment returns cross-payment as the first suggestion instead of payment.
        

      Workaround

      N/A

              Assignee:
              Unassigned
              Reporter:
              Erick Ivan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: