title: sort array in RxJS
body: <p>RxJava has a method <code>toSortedList(Comparator comparator)</code> that converts a flow of objects into a list of objects sorted by a Comparator.</p>
  
  <p>How can I achieve the same in JavaScript with RxJS and get an Observable with a flow of objects to emit a sorted array/list?</p>