Skip to content

select2 sorting #13078

@Stas0238

Description

@Stas0238

Hello,
I am a one of one campaign developers using Elementor plugin to create really cool templates and pages. We have our custom widgets for Elementor plugin and due to using a lot of different field types one of them has a small issue. The Select2 with multiple choices outputs the results in ASC order anyway user select values. Video provided under will show you in more details ->

https://gyazo.com/fad28f0c3bff04510093587fd65ab58a

What I want to get is results as I types step by step. Ids provided order.
In the current way category with id 31 is moving on second position but I should have it on 4th after all items before.

Can you add some param for this type of field to sort results by options provided. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    request/enhancementIndicates an Enhancement Request for an existing feature.request/workflowIndicates a Request for a new Workflow in one of the components.type/developer-apiIndicates when a topic is related to the Developer API and Documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions