title: Recursive Selection Sort python
body: <p>There is a recursive selection sort in the upcoming question that has to be done. </p>
  
  <pre><code>def selsort(l):
      """
      sorts l in-place.
      PRE: l is a list.
      POST: l is a sorted list with the same elements; no return value.
      """                    
  
  l1 = list("sloppy joe's hamburger place")
  vl1 = l1
  
  print l1    # should be: """['s', 'l', 'o', 'p', 'p', 'y', ' ', 'j', 'o', 'e', "'", 's', ' ', 'h', 'a', 'm', 'b', 'u', 'r', 'g', 'e', 'r', ' ', 'p', 'l', 'a', 'c', 'e']"""
  
  ret = selsort(l1)
  
  print l1    # should be """[' ', ' ', ' ', "'", 'a', 'a', 'b', 'c', 'e', 'e', 'e', 'g', 'h', 'j', 'l', 'l', 'm', 'o', 'o', 'p', 'p', 'p', 'r', 'r', 's', 's', 'u', 'y']"""
  print vl1   # should be """[' ', ' ', ' ', "'", 'a', 'a', 'b', 'c', 'e', 'e', 'e', 'g', 'h', 'j', 'l', 'l', 'm', 'o', 'o', 'p', 'p', 'p', 'r', 'r', 's', 's', 'u', 'y']"""
  
  print ret   # should be "None"
  </code></pre>
  
  <p>I know how to get this by using key &rarr; <code>l.sort(key=str.lower)</code>. But the question wants me to  extract the maximum element, instead of the minimum, only to <code>.append(...)</code> it on to a recursively sorted sublist.</p>
  
  <p>If I could get any help I would greatly appreciate it. </p>