title: How to sort an integer array in-place in Python?
body: <p>how can one sort an integer array (<strong>not</strong> a list) in-place in Python 2.6?  Is there a suitable function in one of the standard libraries?</p>
  
  <p>In other words, I'm looking for a function that would do something like this:</p>
  
  <pre><code>&gt;&gt;&gt; a = array.array('i', [1, 3, 2])
  &gt;&gt;&gt; some_function(a)
  &gt;&gt;&gt; a
  array('i', [1, 2, 3])
  </code></pre>
  
  <p>Thanks in advance!</p>