| Problems Sorting with Search
When we do a search on the gallery, we want the results to come back sorted by newest photos first. How do I make that the default?
Also, when we do a search, if we scroll down to the "Sort Photos" section and change the "sort by", "timeframe", and "order" drop-down values, the resulting page loses the search (and then sorts ALL the photos -- not just the photos returned from the search).
For example, if I do a gallery search on the word "green", this is the resulting page:
showgallery.php?mcats=all&si=green&what=allfields&name=&when=0&whenterm=&condition=and
And it returns 843 results but they're not sorted by date (newest photos first).
So I scroll down to the bottom of the page to the "Sort Photos" box and select:
Sort by: Posted Date
Timeframe: Beginning
Order: Descending
and then click the "Sort Now" button.
The resulting page is showgallery.php (without any other variables/values at the end of the URL). And now it's showing 54,688 results instead of just the 843 results that were returned from my search.
|