rsanchez / json

Output ExpressionEngine data in JSON format.
http://devot-ee.com/add-ons/json/
101 stars 234 forks source link

Orderby and Sort have no effect on results #2

Closed bryantAXS closed 13 years ago

bryantAXS commented 13 years ago

Orderby and Sort are having no effect on the results shown. All results are returning by entry_id, ascending.

template code:

{exp:json:entries channel="articles" orderby="date" sort="asc" search:article_type="=The Post Family"} {/if}

It looks like $this->channel_sql() is returning the correct query for pulling the entries in the correct order, but that query is not used further down in the code. $this->entries, which gets passed into the json parser, only contains all of the entries from the given set of entry_ids it is passed, which are in no specific order.

rsanchez commented 13 years ago

fixed this issue, pls close if you confirm it's been fixed

bryantAXS commented 13 years ago

yep, fixed