[Erp5-dev] Sorting listboxes' columns using 'integer' sort

Jérôme Perrin jerome at nexedi.com
Wed Apr 11 19:42:21 CEST 2007


Le Mercredi 11 Avril 2007 18:31, Mikolaj Antoszkiewicz a écrit :
> I know it is possible to make portal_catalog sort the data it retrieves by
> the integer field, by forcing 'int' conversion of the sorted field.
>
> Is it possible to make listbox do the same, i.e. sort by numerical ID in '1
> 2 3 4 10' fashion rather than '1 10 2 3 30' ? And how that can be achieved?
> Is it something to do with Default Sort property?
>
> Mikolaj
>
> P.S. The List Method is a custom script not a portal_catalog/searchFolder.

Custom scripts have to understand sort_on parameter and sort accordingly. If 
you don't use catalog, you have to sort in python.

Jérome



More information about the Erp5-dev mailing list