Allow sorting of results

Created on 30 August 2024, 4 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
  • Value4

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

Needs review

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

Production build 0.71.5 2024