i want to sort search results by field#1 (instead of 0) by default if user doesn't select a different order. this code seems to work:
< SELECT NAME="sb" >
< OPTION SELECTED VALUE='1' >---
i added value=1 to above code in html.pl search options.
what i want to do now is: if the user selects a different sort by field, then i want to honor the user's choice as the first sort field, and then sort by field #1 within the user's choice. in other words, if the user sorts by category, then i want to sort by name (field#1) within each category.
i'm sure it can be done, but it's beyond my current knowledge! please help. thanks.
< SELECT NAME="sb" >
< OPTION SELECTED VALUE='1' >---
i added value=1 to above code in html.pl search options.
what i want to do now is: if the user selects a different sort by field, then i want to honor the user's choice as the first sort field, and then sort by field #1 within the user's choice. in other words, if the user sorts by category, then i want to sort by name (field#1) within each category.
i'm sure it can be done, but it's beyond my current knowledge! please help. thanks.