Skip to content

query.sort should be an array, not an object #30

Closed
@clintongormley

Description

@clintongormley

Because JSON doesn't take order into account, sort should be an array, not an object.

For instance:
sort : {
postDate : {reverse : true},
user : { },
score : { }
}

is the equivalent of:

sort : {
    score : { }
    user : { },
    postDate : {reverse : true},
}

Instead, perhaps this syntax:

sort : [
    "score",
    "user",
    { "postDate": { "reverse": true}} 
]

clint

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions