[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] sort descending on search


groove cube <suppressed> 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
 _/ _/    _/          _/ _/     _/    _/  _/_/    suppressed
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.