how to sort lines of file.txt according to str len - php
<p>i want to sort a file.txt according to string len </p>

<p>sample file.txt :</p>

<pre><code>wew
12dde
12swsw
11
swsw
a
</code></pre>

<p>ofter sort file sorted.txt :</p>

<pre><code>a
11
wew
swsw
12dde
12swsw
</code></pre>
