title: How do you sort an Observable<Item[]> in Angular 6 with rxjs 6?
body: <p>I just want to sort data on an observable of my class type 'Category'.  So Observable &lt; Category[] > I want to sort.</p>
  
  <p>So I upgraded to Angular6 and rxjs6 with it.  One issue that is probably simple Typescript that I do know is how do I just do a 'sort' operation like:</p>
  
  <pre><code>sort((x,y) =&gt; x.description &lt; y.description ? -1 : 1)
  </code></pre>
  
  <p>Inside of the new Angular6?  I used to do this in 5</p>
  
  <pre><code>var response = this.http.get&lt;Category[]&gt;(this.endpoint);
          .map((result: Response) =&gt; this.alphabetize(result));
  
  
  alphabetize = (result: Response) =&gt; this.Categories = result.json()
  .sort((x,y) =&gt; x.description &lt; y.description ? -1 : 1)
  </code></pre>
  
  <p>And it worked fine.  Now in the HttpCLIENTModule and HttpClient that Angular wants you to use it is simpler:</p>
  
  <pre><code>var data = this.http.get&lt;Category[]&gt;(this.endpoint);
  </code></pre>
  
  <p>I just put the magic &lt;(object)> before my endpoint and it does it for me.  Cool.  But I am not seeing how you get inside the object easily to sort from it with Source, Pipe, from, of.  I know it is probably something simple I just don't know the syntax for.</p>