title: richfaces reRender executed before action listener completion
body: <p>I have a Richfaces listShuttle component that I need to have the source values (left side) sorted. For this purpose, after the value of the component has changed, I have a backing bean method to sort the elements, and the I want to rerender the listShuttle.</p>
  
  <p>the xhtml code:</p>
  
  <pre><code>&lt;a4j:region&gt;
      &lt;rich:listShuttle id="#{id}_listShuttle"
          sourceValue="#{bean.displayedItems}"
          targetValue="#{bean.selectedItems}" var="item"
          fastOrderControlsVisible="false" orderControlsVisible="false"
          fastMoveControlsVisible="false"
          style="margin-right:15px;margin-bottom:15px;"&gt;
  
          &lt;f:converter converterId="#{converterId}" /&gt;
          &lt;a4j:support event="onlistchanged" action="#{bean.sortList}"
              reRender="#{updateId}, #{id}_listShuttle" /&gt;
  
          &lt;rich:column&gt;
              &lt;h:outputText value="#{item.name}" /&gt;
          &lt;/rich:column&gt;
      &lt;/rich:listShuttle&gt;
  &lt;/a4j:region&gt;
  </code></pre>
  
  <p>It is a component I use in more places, so I pass some parameters to it.</p>
  
  <p>The problem is that the action <code>action="#{bean.sortList}"</code>  is executed after the rerender phase. I want this action to be executed before the rerender phase.</p>
  
  <p>The order of the actions is this:
  - getDisplayedItems
  - setDisplayedItems
  - sortList</p>
  
  <p>Any idea how to make the listShuttle rerender after the sortList action?</p>