title: How to order strings format from database in PHP?
body: <p>I have numbers like this: 666/2014, 01/2014, 1/2014, 02/2014, 125/2014, 06/2014 ...etc as  STRING named 'n_inscription' in database.
  I want to retrieve those strings In ORDER from database </p>
  
  <p>I used this:</p>
  
  <pre><code>$sql_students = $bd-&gt;query("SELECT * FROM `es_student_infos`
                              WHERE school_year='$school_year'
                              ORDER BY right(n_inscription, 4) * 1,
                              substring_index(n_inscription, '/', 1) * 1");
  </code></pre>
  
  <p>I get result like this:
  01/2014, 
  02/2014,
  06/2014,
  1/2014,
  125/2014,
  666/2014</p>
  
  <p>and the result I'm looking for is like this:
  01/2014,
  1/2014,
  02/2014,
  06/2014,
  125/2014,
  666/2014</p>
  
  <p>any suggestion please?</p>