title: How to sort by date in Javascript/Angular {{}}
body: <p>Say I have this piece of code:</p>
  
  <pre><code>&lt;tr  ng-repeat-start="caseHistory in vm.caseHistory"&gt;
              &lt;td &gt;{{caseHistory.date | date:"dd-MMM-yyyy h:mm a"}}&lt;/td&gt;
              &lt;td &gt;{{caseHistory.description}}&lt;/td&gt;
              &lt;td &gt;{{caseHistory.performedByUser.firstName}} {{caseHistory.performedByUser.lastName}} ({{caseHistory.performedByUser.externalAssociateId}})&lt;/td&gt;
              &lt;td&gt;
                  &lt;span ng-show="vm.showCreateCaseComments(caseHistory.eventType,caseHistory.comments)"&gt;
                      &lt;a ng-if="caseHistory.expanded" class="removeTextDecoration headerPointer" ng-click="caseHistory.expanded = false"&gt; -Collapse&lt;/a&gt;
                      &lt;a ng-if="!caseHistory.expanded" class="removeTextDecoration headerPointer" ng-click="caseHistory.expanded = true"&gt; +Expand&lt;/a&gt;
                  &lt;/span&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
  </code></pre>
  
  <p>I would like it so that everything that is shown to be sorted by ascending chronological date.</p>
  
  <p>What would I need to add in <code>{{caseHistory.date | date:"dd-MMM-yyyy h:mm a"}}</code> in order to sort all the results in by the date?</p>