All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Using Playa field to order search results from channel

Jared Walters 24 Apr 2014 16:00 question, complete

I hit a snag trying to order search results from a channel by a Playa field. The playa field is a single-entry relationship and the list returned is in an order, just not alphabetically according to the title of the related entry.

I think this has something to do with the fact that what's stored in the database is the entry id, the url title, and the title of the related entry, so it may be ordering the list by what's first in the database, which is the entry id. I could be wrong.

Anyway around this?

Replies

  1. Low 24 Apr 2014 20:39

    Hi Jared,

    The only way around this would be to get all the Playa entry IDs as a pipe-separated list, and add that to the fixed_order parameter of the Results parameter.