Skip to main content.
home | support | download

Back to List Archive

Re: Reverse sort date

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Sat Jul 27 2002 - 21:08:03 GMT
At 05:15 PM 07/26/02 -0700, Scot Hacker wrote:
>I've searched the archives and documentation but haven't found an answer to
>this, hoping someone can help. Using v2.1 dev 25 and the bundled CGI
>scripts. 
>
>Last Modified sorts documents oldest to newest. This is logical, but I want
>the most recently modified docs to sort first (default to reverse), while
>forward is still the default for all other sorts. Is it possible to have a
>different sort order for the date property only?

Look for the -s switch at:
 http://swish-e.org/2.2/docs/SWISH-RUN.html#Searching_Command_Line_Arguments

You can use modifiers "desc" and "asc" to control the sort order.

>I've studied the scripts but can't see a way to do this (but I'm a perl
>newbie).

Which script?  The example/swish.cgi script should allow you to select and
sort by date.  See http://swish-e.org/Discussion/search/swish.cgi


-- 
Bill Moseley
mailto:moseley@hank.org
Received on Sat Jul 27 21:12:01 2002