Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-7436

Typeahead Selects sort items alphabetically when filtering

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Obsolete
    • Icon: Optional Optional
    • None
    • None
    • System
    • None
    • False
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Yes
    • undefined

      For a set of plans: Plan A, A plan B and The plan C, this is the filtering logic currently in place:

      plans.search('A')
      // -> ['Plan A', 'A plan B', 'The plan C']
      
      plans.search('plan')
      // -> ['Plan A', 'A plan B', 'The plan C']
      
      

      It would be nice to sort those items alphabetically though:

      plans.search('A')
      // -> ['A Plan B', 'plan A', 'The plan C']
      

       

      What we have now in the applications plan typeahead search, the list in the search is in the same order as the one in the list.

       

              Unassigned Unassigned
              jgallaso Jose Miguel Gallas Olmedo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: