Allow sorting of results

Created on 30 August 2024, 10 months ago

Problem/Motivation

I need to sort the results of the autocomplete suggestions.

Steps to reproduce

  • Create a Taxonomy
  • Add a multivalue string field
  • Create some terms
  • Add a Solr index and index those terms
  • Create a View based on the new index
  • Add an autocomplete field based on the text field

It seems the results are sorted by Terms.
So if my Term1 has values Value1 and Value3, and my Term2 has Value2 and Value4, the autocomplete will propose

  • Value1
  • Value3
  • Value2
  • Value41

Proposed resolution

Add a sort option on the field.

Remaining tasks

Add tests.

User interface changes

New option on field in View.

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France seb_r

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @seb_r
  • Issue was unassigned.
  • Merge request !24Issue #3471237: Add sort option → (Open) created by seb_r
  • Status changed to Needs review 10 months ago
  • Pipeline finished with Success
    10 months ago
    Total: 153s
    #269456
  • Status changed to Needs work 5 months ago
  • 🇷🇴Romania vasike Ramnicu Valcea

    the MR looks right ... but the module has tests ... this mean a new feature, or just an issue code solution should be covered also by tests

  • Pipeline finished with Failed
    about 1 month ago
    Total: 143s
    #507562
  • Pipeline finished with Failed
    about 1 month ago
    Total: 177s
    #507592
Production build 0.71.5 2024