title: Application Insights order by aggregate
body: <p>I have the following query:</p>
  
  <pre><code>customEvents
  | summarize count(datepart("Second", timestamp) ) 
      by toint(customMeasurements.Latency)
  </code></pre>
  
  <p>This is counting the number of seconds past the minute and grouping it by an integer <code>Latency</code>.</p>
  
  <p>How do I add an <code>order by</code> operator to this to order by these columns?</p>