title: Python Bubble sort Words
body: <p>I'm new to python
  im looking for a code to bubble sort a list of words.</p>
  
  <pre><code>mylist = [12, 5, 13, 8, 9, 65]
  
  def bubble(badList):
      length = len(badList) - 1
      unsorted = True
  
      while unsorted:
          for element in range(0,length):
              unsorted = False
              if badList[element] &gt; badList[element + 1]:
                  hold = badList[element + 1]
                  badList[element + 1] = badList[element]
                  badList[element] = hold
                  print badList
              else:
                  unsorted = True
  
  print bubble(mylist)
  </code></pre>
  
  <p>this code does it with numbers i want one that does it with words.
  Thanks </p>