title: How to sort the files based on the grep count?
body: <p>my grep -c command for a particular pattern returns files as follows</p>
  
  <pre><code>A:2
  B:6
  c:1
  d:9
  </code></pre>
  
  <p>Now i want to sort the files based on this command. so my final op will be</p>
  
  <pre><code>c:1
  A:2
  B:6
  d:9
  </code></pre>
  
  <p>how to use grep and sort together?</p>