It seems that order does not respect order in XML definition
My widget is a "select-content" widget which use a specific search model (person.xml in ODF)
The criteria are defined like following
<simple-search-criteria>
<criteria field-ref="title">
<test-operator>search</test-operator>
</criteria>
<criteria field-ref="lastName">
<test-operator>search</test-operator>
</criteria>
<criteria field-ref="givenName">
<test-operator>search</test-operator>
</criteria>
<criteria system-ref="contributor">
<test-operator>search</test-operator>
</criteria>
<criteria system-ref="workflowStep">
<test-operator>eq</test-operator>
<enumeration>
<custom-enumerator class="org.ametys.cms.workflow.DefaultWorkflowStepEnumerator">
<workflow-name>person</workflow-name>
<exclude-workflow-steps>
<id>9999</id>
</exclude-workflow-steps>
</custom-enumerator>
</enumeration>
</criteria>
<criteria system-ref="lastModified">
<label i18n="true">plugin.cms:UITOOL_SEARCH_CONTENT_LASTMODIFIED_AFTER</label>
<test-operator>gt</test-operator>
</criteria>
<criteria system-ref="lastModified">
<label i18n="true">plugin.cms:UITOOL_SEARCH_CONTENT_LASTMODIFIED_BEFORE</label>
<test-operator>lt</test-operator>
</criteria>
<criteria system-ref="contentLanguage">
<widget>edition.select-language</widget>
<default-value>CURRENT</default-value>
<validation>
<mandatory />
</validation>
</criteria>
</simple-search-criteria>
The issue was correctly fixed.
The problem is on definition of udorgunit.xml search model