title: How to sort by descending datetime ng-repeat in Angularjs?
body: <p>I want to sort my data by descending date, ie 27, 26 , 25 .... How to do this?</p>
  
  <pre><code>&lt;tbody class="gradeX" ng-repeat="x in Profile | orderBy: x.created_datetime"&gt;
    &lt;tr&gt;
      &lt;td&gt;{{x.job_title }}&lt;/td&gt;
      &lt;td&gt;{{x.created_datetime | date:'medium' }}&lt;/td&gt;
      &lt;td&gt;{{x.updated_datetime | date:'medium' }}&lt;/td&gt;
      &lt;td&gt;{{x.status}}&lt;/td&gt;
      &lt;td&gt;{{ x.total }}&lt;/td&gt;
      &lt;td class="actions"&gt; &lt;a href="" data-toggle="tooltip" title="Show Invoice Details" ng-click="activeinvoicesCtrl.setCurrentJob(x)"&gt;&lt;i class="fa fa-server fa-2x" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt; &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>