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

Support archive

Results by status order gives mixed orderby!

RecentlyPosted 15 Mar 2015 10:21 question, complete

Hi, I wonder how you can order search results by status?

Currently i have set result pages parameter as to orderby="status" status="Premium|Featured|Open" but it does not order them by giving "Premium" first, then "Featured" and last "Open".

How I can force results to give out "Premium" entries first, then "Featured" and after those "Open" if there is one.

Thank you.

Replies

  1. Low 15 Mar 2015 11:48

    Ordering by status, like in the native channel:entries tag, will order entries alphabetically by status. So, Featured, Open, Premium. It does not take the order of the status="" parameter into account. This is native functionality.

    To change this, you'd either need to change the names of your statuses, so if you order them alphabetically, they are in your semantically correct order, eg. "1-premium", "2-featured", "3-open".

  2. RecentlyPosted 15 Mar 2015 12:13

    Thanks Low. Didnt know this before now.