ryancramerdesign / ProcessWire

Our repository has moved to https://github.com/processwire – please head there for the latest version.
https://processwire.com
Other
727 stars 201 forks source link

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

Open Toutouwai opened 8 years ago

Toutouwai commented 8 years ago
$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");