title: Sorting in RxJava: Is there a better way to do it?
body: <p>I need to return a <code>Observable&lt;CostCenter&gt;</code> emitting centers sorted by <code>name</code>  </p>
  
  <pre><code>  public Observable&lt;CostCenter&gt; getCostCenters() {
          return dao.getCostCenters().toSortedList(new Func2&lt;CostCenter, CostCenter, Integer&gt;() {
              @Override
              public Integer call(CostCenter costCenter, CostCenter costCenter2) {
                  return costCenter.getName().compareTo(costCenter2.getName());
              }
          }).flatMap(new Func1&lt;List&lt;CostCenter&gt;, Observable&lt;CostCenter&gt;&gt;() {
              @Override
              public Observable&lt;CostCenter&gt; call(List&lt;CostCenter&gt; costCenters) {
                  return Observable.from(costCenters);
              }
          });
      }
  </code></pre>
  
  <p><code>dao.getCostCenters()</code> returns <code>Observable&lt;CostCenter&gt;</code>. Is there any operator to convert a <code>Observable&lt;List&lt;T&gt;&gt;</code> to <code>Observable&lt;T&gt;</code> without using <code>flatMap</code>?</p>