Where can I define the sortorder of the results? Thx
Mar 6, 1999, 3:57 PM
Veteran / Moderator (8669 posts)
Mar 6, 1999, 3:57 PM
Post #2 of 3
Views: 1588
In the html_search_options subroutine there's places to set the sort order -- ascending or descending -- and the field on which to sort. If you want to set them yourself (as a default) use hidden fields
sort order:
<input type="hidden" name="so" value="descend">
(the default is ascending sort order, so if you want that, you don't need to add anything)
field to sort by:
<input type="hidden" name="sb" value="[#]">
replace the [#] above with the number of the field you want to sort by.
If you do add the hidden fields, I would take out the options in html_search_options, so there's not a conflict.
------------------
JPD
sort order:
<input type="hidden" name="so" value="descend">
(the default is ascending sort order, so if you want that, you don't need to add anything)
field to sort by:
<input type="hidden" name="sb" value="[#]">
replace the [#] above with the number of the field you want to sort by.
If you do add the hidden fields, I would take out the options in html_search_options, so there's not a conflict.
------------------
JPD