title: sort string by number inside
body: <p>I would like to know how can I sort a string by the number inside.</p>
  
  <p>As example I have:</p>
  
  <pre><code>hello = " hola %d" % (number_from_database)
  bye = "adios %d" % (number_from_database_again)
  </code></pre>
  
  <p>I want to sort them by the number even if it changes.</p>