Sort a container with some datas contains in a sub container

"ghislain\.cussonneau" <[email protected]>
Newsgroups gmane.comp.cms.jahia.template
Message-ID <[email protected]>
Hi !

Is-there any solution to sort a container with using a field contain in sub container ?

I explain my request :

I've got a containerlist for my pages :
<content:declareContainerList name="docContainerList" title="Doc Container List" titleKey="docContainerList" bundleKey="<%=resBundleID%>">
<content:declareContainer>
<content:declareField name="docLink" title="Link" titleKey="link" bundleKey="<%=resBundleID%>" type="Page" />
</content:declareContainer>
</content:declareContainerList>
All my pages contains metadatas declared as follow :
jData.containers().declareField( "metadataDate", ResourceBundleMarker.drawMarker(resBundleID, "date", "Date"), FieldTypes.DATE, "<jahia_calendar[dd mon yyyy]>");
jData.containers().declareField( "metadataDescription", ResourceBundleMarker.drawMarker(resBundleID, "description","Description"), FieldTypes.SMALLTEXT, (String) pageContext.findAttribute("defaultMetaDescription") );
jData.containers().declareField( "metadataKeywords", ResourceBundleMarker.drawMarker(resBundleID, "keywords","Keywords"), FieldTypes.SMALLTEXT, (String) pageContext.findAttribute("defaultMetaKeyword") );
Vector metadataFields = new Vector();
metadataFields.add( "metadataDate" );
metadataFields.add( "metadataDescription" );
metadataFields.add( "metadataKeywords" );
jData.containers().declareContainer( "metadataContainer", ResourceBundleMarker.drawMarker(resBundleID, "metadataContainer","Metadata Container"), metadataFields );
And I want to sort the docContainerList on the metadataDate field.

How can I do with the container sort handlers ?
Do I need to create my own sort handlers ?

Thanks in advance.

Ghislain CUSSONNEAU

La Poste - DIPM

CAP 44, Rue Marcel Sembat

44000 Nantes

02 51 84 48 80

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.