Skip to content

Sort not working #34

@arthurquerou

Description

@arthurquerou

It seems that sort conditions are not taken into account.

In index.js in the Sort section you have this code:

var sort = _.keys(options.sort)[0];
      if (sort) {
          query.ascending();
        }
        else if (sort == -1) {
          query.descending();
        }

It can't even work as sort equals the key and not the value.

Are there any plan to update this behaviour ?

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