Skip to content

Feature Request: Multiple Sort #1

@collegeimprovements

Description

@collegeimprovements

Right now this is possible:

iex(1)> Bind.QueryBuilder.build_sort_query(%{"sort" => "-name"})
[desc: :name]

But this is not:

iex(1)> Bind.QueryBuilder.build_sort_query(%{"sort" => ["-name", "age"]})
[desc: :name, asc: :age]

Would it be possible to support multiple sort/order_by ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions