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 by Options field not working in $pages->find($selector) #2049

Open
Toutouwai opened this issue Sep 23, 2016 · 0 comments
Open

Sort by Options field not working in $pages->find($selector) #2049

Toutouwai opened this issue Sep 23, 2016 · 0 comments

Comments

@Toutouwai
Copy link

$results = $pages->find("template=my_template, sort=my_options_field.sort");

The above does not sort $results according to the sort order of the options field. Also, attempting to reverse the sort order with sort=-my_options_field.sort has no effect.

Sorting a page array works properly though.

$results->sort("my_options_field.sort");
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