title: How to sort the output of "grep -l" chronologically by newest modification date last?
body: <p>I'm using the -l flag with grep to just print the matching file names.</p>
  
  <p>I want to then list the results (files) in ascending order i.e. newest last.</p>
  
  <p>Obviously</p>
  
  <pre><code>grep -l &lt;pattern&gt; *.txt | ls -rt
  </code></pre>
  
  <p>is not what I need, since the <em>ls -lrt</em> merely outputs <em>all</em> files.</p>