Skip to content

ORDER BY an aggregate that is not in the SELECT list does not sort #3149

Backlog

Description

@mathiasrw
alasql('SELECT g FROM ? GROUP BY g ORDER BY COUNT(*) DESC', [[{g: 1}, {g: 2}, {g: 2}]]);

It gives [{g: 1}, {g: 2}].

SQLite gives 2, 1.

Fixed by #2647.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions