Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.
This repository was archived by the owner on May 26, 2020. It is now read-only.

Order by doesn't work when filters are applied #21

@IkaterinaI

Description

@IkaterinaI

We have 2 sorting options - oldest to newest and newest to oldest. If you apply some filters and then sort the results (say newest to oldest), it returns correct results the first time but the second time you want to order (oldest to newest) it returns all the results without applied filters.

How can we get the list of currently applied filters to update the query ourselves?

Currently we only update the query like this:

automagic.store.updateSearchParameters({ orderby : "PublishedDate desc"});
(now it would return correct results with applied filters)

automagic.store.updateSearchParameters({ orderby : "PublishedDate asc" });
(now it would remove applied filters and return everything)

It doesn't really matter in what order you sort the results, it is always the second call that doesn't work correctly.

The documentation online doesn't really mention anything about this..

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