title: Angular 2. How to apply orderBy?
body: <p>I have a piece of code.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;table class="table table-bordered table-condensed" cellpadding="0" cellspacing="0"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;#&lt;/th&gt;
              &lt;th&gt;Name&lt;/th&gt;
              &lt;th&gt;Score&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr *ngFor="#participant of participants; #i = index"&gt;
              &lt;td&gt;{{i+1}}&lt;/td&gt;
              &lt;td&gt;{{participant.username}}&lt;/td&gt;
              &lt;td&gt;{{participant.score}}&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>In Angular 1 i have <strong>orderBy</strong> filter to order rows by my filter. But how can i do orderBy in Angular 2 the same way ? Thank you.</p>