Skip to content

Suggestion: Add support for sort in the free text search #59

@DannyBen

Description

@DannyBen

It would be super nice if the free expression search would support sorting, so we can do:

User.search "status = active and comments > 1 sort : -joined_on"

or some other human-friendly syntax. Here I assumed - for descending order, and + (or no prefix) for ascending order.

Is this considered out of scope for search_cop?
I just find myself beginning to enjoy just giving the users a single search field, but now I still have to provide them with "Sort By" UI controls, which I would love to retire as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions