title: Length-wise-sorted list but, same length in alphabetical-order in a step
body: <p>My Python List of string is something like <code>x</code> but long enough:  </p>
  
  <pre><code>x = ['aaa','ab','aa','c','a','b','ba']      
  </code></pre>
  
  <p>I wants to sort this list as:  <code>['a', 'b', 'c', 'aa', 'ab', 'ba', 'aaa']</code> and I did as follows in <strong>two</strong> steps:  </p>
  
  <pre><code>&gt;&gt;&gt; x.sort()   
  &gt;&gt;&gt; x.sort(key=len)      
  &gt;&gt;&gt; x
  ['a', 'b', 'c', 'aa', 'ab', 'ba', 'aaa']   
  </code></pre>
  
  <p>But I need in one-step: I also tied using <code>lambda</code> function (<a href="https://stackoverflow.com/questions/4655591/python-sort-list"><strong>taken help</strong></a>):  </p>
  
  <pre><code>&gt;&gt;&gt; x.sort(key=lambda item: (item, len(item)))
  &gt;&gt;&gt; x
  ['a', 'aa', 'aaa', 'ab', 'b', 'ba', 'c']  
  </code></pre>
  
  <p>But not as I desired:  </p>
  
  <p>Is it possible in one-step? Please me.   </p>
  
  <p>My Python:  </p>
  
  <pre><code>~$ python --version  
  Python 2.6.6
  </code></pre>