AnsweredAssumed Answered

How can we avoid associations sorting?

Question asked by pitzalis on May 12, 2011
Latest reply on Jan 11, 2012 by sam1980
I have created a custom model cointaining the following aspect:

<aspect name="custom:reviewassignees">
      <association name="custom:reviewAssigneesList">

In my share-config-custom.xml I add:

<config evaluator="aspect" condition="custom:reviewassignees">
            <show id="custom:reviewAssigneesList"/>
            <field id="custom:reviewAssigneesList" >
               <control template="/org/alfresco/components/form/controls/authority.ftl" >
                  <control-param name="showTargetLink">true</control-param>

I use it to associate a list of users to a document.
I need theese users to be kept in the list in the same order as they are entered, but it happens that, the moment we save the document's metadata, the list is sorted in alphabetical order.

Does anyone know how to avoid this behaviour?