How to cause permutation event by manipulating ObservableList?
<p><a href="http://download.java.net/jdk8/jfxdocs/javafx/collections/ObservableList.html" rel="nofollow"><code>ObservableList</code></a> listeners can receive <a href="http://download.java.net/jdk8/jfxdocs/javafx/collections/ListChangeListener.Change.html" rel="nofollow"><code>Change</code></a> events with permutation set.</p>

<p>Simultaneously, among list operations, I see only ones to delete or insert elements.</p>

<p>Is it possible to perform such operation on list, which will cause permutation reported?</p>

<p><strong>UPDATE</strong></p>

<p>Here is the clarification code:</p>

<pre><code>public class ObservableListPermutation {

   public static void main(String[] args) {

      ObservableList&lt;String&gt; list = FXCollections.observableArrayList();


      list.add("timbuktu");
      list.add("timid");

      list.addListener(new ListChangeListener&lt;String&gt;() {
         @Override
         public void onChanged(Change&lt;? extends String&gt; c) {
            while(c.next()) {
               if( c.wasPermutated() ) {
                  System.out.println("Was permutated");
               }
            }
         }
      });

      System.out.println("Sorting by library:");
      Collections.sort(list);

      System.out.println("Sorting by own:");
      Collections2.sort(list);


   }


   public static class Collections2 {
      public static void sort(List&lt;String&gt; list) {
         String element = list.remove(0);
         list.add(element);
      }
   }
}
</code></pre>

<p>As you see, my custom permutation does not cause permutation event, because it is done by removing and adding elements. How to implement custom permutation, so that it cause permutation event?</p>

<p><strong>UPDATE 2</strong></p>

<p>If I try to trace <code>sort()</code> with debugger, I am unable to enter the code of <code>sort()</code>.</p>