Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort options in v1.0.3 #109

Open
Katsivelisp opened this issue Jul 27, 2022 · 0 comments
Open

Sort options in v1.0.3 #109

Katsivelisp opened this issue Jul 27, 2022 · 0 comments

Comments

@Katsivelisp
Copy link

Hello,

I have been trying to play around with the sort options in v1.0.3. Currently there are two options supported in search.jsx
export const sortOptions = [ { field: 'modified', order: 'desc', label: 'Upload date' }, { field: 'title', order: 'asc', label: 'Alphabetical' } ];

If I change one of the two, nothing particularly happens. Even if I change the sort order, the results are still retrieved in the same order. I was wondering whether it is documented somewhere how I would be able to change/extend these options.

A follow-up question is, which field from the JSON schema does "modified" correspond to?

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

No branches or pull requests

1 participant