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