title: How to sort words in text file?
body: <p>In "test_wordss.txt"</p>
  
  <pre><code>A
  sentence
  is
  a
  grammatical
  unit
  consisting
  of
  one
  or
  more
  words
  A
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>for line2 in open('C://Users/Desktop/test_wordss.txt'):
      fields2 = line2.rstrip('\n').split('\t')
      print fields2.sort()
  </code></pre>
  
  <p>The results from my codes come out as None...</p>
  
  <p>Did I do something wrong? 
  Any suggestion for sorting words in text file?</p>