title: Sorting by absolute value without changing to absolute value
body: <p>I want to sort a tuple using abs() without actually changing the elements of the tuple to positive values.</p>
  
  <pre><code>def sorting(numbers_array):
      return sorted(numbers_array, key = abs(numbers_array))
  
  
  sorting((-20, -5, 10, 15))
  </code></pre>
  
  <p>According to the python wiki (<a href="https://wiki.python.org/moin/HowTo/Sorting/#Key_Functions" rel="noreferrer">https://wiki.python.org/moin/HowTo/Sorting/#Key_Functions</a>), the sorted(list, key=) function is suppose to sort with the parameter <em>key</em> without actually altering the elements of the list. However, abs() only takes int() and I haven't worked out a way to make that tuple into an int, if that's what I need to do. </p>