Reverse Sorting with array


#1

I run several websites that receive a lot of concurrent access and use
the ferret DRB server. I am adding sort functionality to my search pages
and have run into problems with the marshalling of Sort and SortField
objects. Using the :sort=>“name” style works, but I can’t figure out how
to reverse the sort. Is it possible to reverse the sort by passing a
string?

Thanks,

Mike
http://www.elevatedrails.com


#2

On Tue, Jun 26, 2007 at 03:17:45PM +0200, Mike Mangino wrote:

I run several websites that receive a lot of concurrent access and use
the ferret DRB server. I am adding sort functionality to my search pages
and have run into problems with the marshalling of Sort and SortField
objects. Using the :sort=>“name” style works, but I can’t figure out how
to reverse the sort. Is it possible to reverse the sort by passing a
string?

of course - just use :sort => ‘name DESC’.

Regarding the sort object/marshalling problems - this is supposed to
work, do you have a stack trace and some code leading to it for me?

Jens


Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
removed_email_address@domain.invalid | www.webit.de

Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa