title: ObservableList javafx sort descending with Comparator
body: <p>ObservableArrayList.sorted works well with primitive data types but if instead reference datatypes can not work</p>
  
  <pre><code>ObservableList&lt;NewClass&gt; observableArrayList = FXCollections.observableArrayList();
              observableArrayList.add(new NewClass(1, "name 1"));
              observableArrayList.add(new NewClass(2, "name 2"));
              observableArrayList.add(new NewClass(4, "name 4"));
              observableArrayList.add(new NewClass(5, "name 5"));
              observableArrayList.add(new NewClass(3, "name 3"));
  
              observableArrayList.sorted(Comparator.reverseOrder());
  
  
  class NewClass
  private int stt
  private int name
  </code></pre>
  
  <p>Error message</p>
  
  <pre><code>incompatible types: inference variable T has incompatible bounds
      equality constraints: sf.enforcement.NewClass
      upper bounds: java.lang.Comparable&lt;? super T&gt;
  </code></pre>
  
  <p>I want to sort in the stt order of the Newclass, please help me</p>