[ic] sort descending on search
Kevin Walsh
kevin at cursor.biz
Tue Jan 10 11:30:56 EST 2006
groove cube <groovecube at gmail.com> wrote:
> I have a search-box in my catalog, and I havo to return a collection
> sorted (descending) by publish_date.
> Now my problem is the collection return sorted ascending.
>
> with this code ...
>
> <form action="/cgi-bin/catalog/search.html" method=post>
> <INPUT TYPE=hidden NAME=mv_coordinate VALUE=1>
> <INPUT TYPE=hidden NAME=mv_searchtype VALUE=db>
> <INPUT TYPE=hidden NAME=mv_matchlimit VALUE=10>
> <INPUT TYPE=hidden NAME=mv_sort_field VALUE="publish_date">
> <INPUT TYPE=hidden NAME=mv_search_field VALUE=":*">
> <input type=hidden name=mv_min_string value=2>
> <input type=hidden name=mv_substring_match value=1>
> <INPUT TYPE=hidden NAME=mv_column_op VALUE="rm">
>
> Can I specify the type of sort ? (descending for me ?)
>
Add this to your form to reverse the sort order:
<input type="hidden" name="the_sort_option" value="r">
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users
mailing list