[Zope] Dynamic sorting key?

Dieter Maurer dieter@handshake.de
Wed, 21 Jun 2000 22:27:34 +0200 (CEST)


Zoper writes:
 > ..., however I would like to sort on different key by different paramenter...
 > 
 > something like  "... sort=REQUEST['sort_by'] ..." (doesn't work)
 > where sort_by from URL parameter maybe "id", "title", "getSize" or "bobobase_modification_time", etc...
This is a known weakness.

AFAIK, there is currently no way to treat values for "sort" as
expressions.
You may try, 

	... sort="REQUEST['sort_by']" ...

(note the "..."!), but it will probably not work.


It, obviously, is useful, but I believe nobody has implemented
it yet.



Dieter