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

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

Open
IkaterinaI opened this issue Nov 22, 2018 · 0 comments
Open

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

IkaterinaI opened this issue Nov 22, 2018 · 0 comments

Comments

@IkaterinaI
Copy link

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..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant