title: How to sort the output obtained with grep -c?
body: <p>I use the following 'grep' command to get the count of the string <code>alert</code> in each of my files at the given path:</p>
  
  <pre><code>grep 'alert' -F /usr/local/snort/rules/* -c
  </code></pre>
  
  <p>How do I sort the resulting output in desired order- say ascending order, descending order, ordered by name, etc. An answer specific to these cases is sufficient.</p>
  
  <p>You may freely suggest a command other than <code>grep</code> as well. </p>