title: Sort a list where there are strings, floats and integers
body: <p>Is there a way in Python to sort a list where there are strings, floats and integers in it?</p>
  
  <p>I tried to use list.sort() method but of course it did not work.</p>
  
  <p>Here is an example of a list I would like to sort:</p>
  
  <pre><code>[2.0, True, [2, 3, 4, [3, [3, 4]], 5], "titi", 1]
  </code></pre>
  
  <p>I would like it to be sorted by value by floats and ints, and then by type: floats and ints first, then strings, then booleans and then lists. I would like to use Python 2.7 but I am not allowed to...</p>
  
  <p>Expected output:</p>
  
  <pre><code>[1, 2.0, "titi", True, [2, 3, 4, [3, [3, 4]], 5]]
  </code></pre>