Skip to main content.
home | support | download

Back to List Archive

RE: Possible to reverse sort on secondary in config

From: Jody Cleveland <Cleveland(at)>
Date: Fri Jun 06 2003 - 14:01:49 GMT
> So are you using swish.cgi as "search.cgi"?


> I assume you don't have "sorts" set up in your config file.

No, I actually had this in search.cgi:
	sorts		   => [qw/swishrank swishlastmodified swishtitle
	secondary_sort => [qw/swishdocsize asc/]'

But, that didn't seem to work. Well, it half worked. It would sort by
rank, then title, but it would sort desc for size.

> So you can do something like change:

>    # Set the sort option, if any
>    return unless $self->set_sort_order;

I didn't see that in the config file at all. So, I just added this:

>    my @sorts = qw/ swishrank desc swishdocsize/;
>    $self->swish_command( '-s', @sorts );

Didn't like it. It gave me this error:
 Error message:
Premature end of script headers: search.cgi

Received on Fri Jun 6 14:01:54 2003