Skip to content

SortBy should allow for multiple sort attributes at query time #539

@chamby

Description

@chamby

Description
SortBy should allow for multiple sort attributes at query time.

Basic example

  instantsearch.widgets.sortBy({
    container: '#sort-by',
    items: [
      { value: 'clothes', label: 'Relevant' }, // default index
      {
        value: 'clothes:price:asc,created_at:desc',
        label: 'Ascending price then descending creation time using query time sort',
      },
    ],
  }),

This sort formula is probably not ideal for parsing, it is just an example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions