Forum OpenACS Q&A: Re: Using list-builder and order by

Collapse
Posted by Dave Bauer on
Oops,

I left out part of it.

In template::list::create you need to pass in the spec for which elements can be ordered.

-orderby {
   element_name {orderby column_name}
}

You can optionall specify addition attributes for the orderby including the default direction. The full doc of what you can specify is in the api-doc for template::list::orderby_create.