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

Support archive

Sort results by filter: mixed results

Paul Larson 27 Nov 2019 22:36 question, rejected

My shortened tag:


{exp:low_search:form result_page="barstool/.results"}
<span>
Sort By:
<select name="orderby_sort">
<option value="entry_id|desc">Entry High To Low</option>
<option value="WEB_PRICE|desc">Price High to Low</option>
<option value="WEB_PRICE|asc">Price Low to High</option>
</select>
</span>

<button type="submit">Go</button>
{/exp:low_search:form}



And then the results tag:


{exp:low_search:results
query="{segment_3}"
collection="10"
keywords:lang="en"
limit="12"
range:web_price="0|20000" exclude="range:web_price"
}

{if count == 1}
<p style="border-bottom: 1px solid #ccc; padding: 2px;" >Your search for <strong>{low_search_keywords}</strong> received {absolute_results} results.</p>

{!-- debug --}

DIM_1 is "{low_search_search:DIM_1}" -
WEB_PRICE is "{low_search_search:WEB_PRICE}" -
low_search_orderby_sort is "{low_search_orderby_sort}"
low_search_category:category_group is "{low_search_category:category_group}"

<ul class="clearfix">
{/if}

<h2>{title}</h2>
<span style='color:blue'>
{WEB_PRICE}
{DIM_1}
</span>
<span style='color:green'>
entry {entry_id}</span> {/if}

{/exp:low_search:results}


I'm temporarily attempting to use low_search_orderbysort with EntryID to have a concrete, numeric value that should sort properly, as I had issues attempting to use a price field.

See screenshot below, with debug notes. Note the entry_id in green. Should not the entries be sorted high-to-low, by entry_id? Or is the low search score in the mix?

https://www.dropbox.com/s/z8t4a4tlgpx...

(I'm probably missing something obvious)

Replies

  1. Paul Larson 27 Nov 2019 22:52

    Low,

    I did it again. (namely, I was incorrect)

    5 entries just happened to be "Sticky".

    ARGHHHH!

    Is there a Dutch phrase for "I just wasted 90 minutes because of sticky entries?"