Gossamer Forum
Home : Products : DBMan : Installation :

sortorder

Quote Reply
sortorder
Where can I define the sortorder of the results? Thx
Quote Reply
Re: sortorder In reply to
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


Quote Reply
Re: sortorder In reply to
Thanks again for immediate help.