Hi,
In the code below, the page expects "owner_id" and "url".  The resulting page displays a list with two columns: title, and entry_date.  I want both columns to be sortable, so that clicking on the column header will sort the rows in the reverse order.  The problem I am having is that since the page expects "owner_id" and "url", I get an error, since the sortable headers do not export these variables.  How do I export these variables so that they are passed on to the sorted page?
Thanks,
Nick.
#######################################################
ad_page_contract {
    Display all blog entries for a specific owner_id.
} {
    owner_id
    url
    {orderby "entry_date,desc"}
}
set user_id [auth::require_login]
set elements {
    title {
        label {Title}
        display_template {<a href="blog/one-entry?entry_id=@entries.entry_id@">\
@entries.title@</a>}
    }
    entry_date {
        label {Entry Date}
    }
}
# Maybe add category to listing too.                                            
template::list::create \
    -name entries \
    -multirow entries \
    -elements $elements \
    -html {width "100%"} \
    -orderby {
        title {orderby {lower(be.title)}}
        entry_date {orderby entry_date}
    }
db_multirow entries entries {}
ad_return_template