List directory filenames by file word count
<p>I'd like to, </p>

<ol>
<li>Check the word count for a folder full of text files. </li>
<li>Output a list of the files arranged by word count in the format - FILENAME is WORDCOUNT</li>
</ol>

<p>I know str_word_count is used to get individual wordcounts for files but I'm not sure how to rearrange the output.</p>

<p>Thanks in advance.</p>
