title: Sorting files in bash
body: <p>I wiil appreciate your help.</p>
  <p>I have files:</p>
  <pre><code>V0.1__file_a.sql
  V0.2__file_b.sql
  V0__file_c.sql
  V1.1__file_a.sql
  V1.2__b.sql
  V1.3__c.sql
  V1.4__d.sql
  V1.5__e.sql
  V1.6__f.sql
  V1__file_g.sql
  </code></pre>
  <p>I would like to use <strong>sort</strong> command to sort them in next way</p>
  <pre><code>V0__file_c.sql
  V0.1__file_a.sql
  V0.2__file_b.sql
  V1__file_g.sql
  V1.1__file_a.sql
  V1.2__b.sql
  V1.3__c.sql
  V1.4__d.sql
  V1.5__e.sql
  V1.6__f.sql
  
  </code></pre>
  <p>flags <code>-n</code>, <code>-g</code> do not help me with this.</p>
  <p>And i seem to broke my brain solving this</p>
  <p>Could someone to help with that?</p>
  <p>Thanks!</p>