Skip to content

Sorting order is always ascending #1

Description

@MysticMia

The api allows sorting as follows:

Multiple fields are allowed and should be separated by a comma. For example "-scheduleDate, +scheduleTime".

The code currently only supports sorting ascending since it prefixes the "sort by" field with a +. This means you can't sort descending.

Code examples:

'sort': f"+{sort_by}"

'sort': f"+{sort_by}"

'sort': f"+{sort_by}"

'sort': f"+{sort_by}"

A potential solution would be to add an ascending=True function parameter to the end of the linked function's definitions, then doing the following:

'sort': ("+" if ascending else "-") + f"{sort_by}"

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