title: Convert files from numerically sorted to alphabetically sorted
body: <p>I've got files sorted like the following, but they are not sorted by date.</p>
  
  <pre><code>1(1).jpg 
  1(2).jpg 
  1(3).jpg 
  1(4).jpg 
  . 
  . 
  .
  </code></pre>
  
  <p>I want to sort them to be </p>
  
  <p>After i'm doing the following:</p>
  
  <pre><code>perl -e '$prefix="aaaa";map{rename "$_",$prefix++.".$1" if /.*\.(.*)/} &lt;*&gt;'
  </code></pre>
  
  <p>I get the following:</p>
  
  <pre><code>file 1 (1).jpg -&gt; aaaa.jpg
  file 1 (10).jpg -&gt; aaab.jpg
  file 1 (100).jpg -&gt; aaac.jpg
  file 1 (101).jpg -&gt; aaad.jpg
  </code></pre>
  
  <p>I want it to be like:</p>
  
  <pre><code>1(1).jpg -&gt; aaaa.jpg
  1(2).jpg -&gt; aaab.jpg
  1(3).jpg -&gt; aaac.jpg
  1(4).jpg -&gt; aaad.jpg
  </code></pre>
  
  <p>I guess this is because it considers the numeric sorting and not the alphabetical sorting.</p>
  
  <p>Can anyone help me with that?</p>