title: Angular sorting by descending
body: <p>I thought that is using the orderby filter in angular, we could simply reverse by adding a "-" before that which you want to order by. So in my case in the code below, why would this not work? I have tried with the "-" in and out of the single quotes. </p>
  
  <p>Code:</p>
  
  <pre><code>&lt;tr class="alertText" ng-repeat="swipe in ppt.Swipes | orderBy:'-swipe.date' "&gt;
      &lt;td&gt;{{swipe.date|date : 'MM/dd/yyyy'}}&lt;/td&gt;
      &lt;td&gt;{{swipe.descr}}&lt;/td&gt;
      &lt;td&gt;{{swipe.amount | currency}}&lt;/td&gt;
      &lt;td&gt;{{swipe.dueDate|date : 'MM/dd/yyyy'}}&lt;/td&gt;
      &lt;td&gt;{{swipe.status}}&lt;/td&gt;
      &lt;td class="clearIcon"&gt;&lt;span ng-click="editSwipe()"&gt;&lt;img src="ppt/assets/toolIcons/clearswipe-small.svg"&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>