title: Sorting list of strings in lexicographic order
body: <p>I want to print the words in lexicographic order. I thought <code>sorted()</code> arranges the words in this way. I have also tried <code>.sort()</code> which returns the same order. Or am I missing something with what lexicographic order really is?</p>
  
  <p>Code:</p>
  
  <pre><code>a_list = ['Zrhregegrydb', 'cygzRFWDWBdvF']
  for word in sorted(a_list):
      print(word)
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code># Zrhregegrydb
  # cygzRFWDWBdvF
  </code></pre>
  
  <p>Desired Output:</p>
  
  <pre><code># cygzRFWDWBdvF
  # Zrhregegrydb
  </code></pre>