Skip to content

Allow sorting by named expression #8

@pbyrne

Description

@pbyrne

Assorted currently only allows sorting by a column on the table, or else it raises an ActiveRecord::StatementInvalid exception. It would be nice to be able to sort by named expression e.g., Foo.select("id, lower(bar) as lower_bar").asc("lower_bar").

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions