title: I want to check if a string is abecedarian
body: <p>I want to check if a string is abecedarian (in alphabetical order). </p>
  
  <pre><code>def is_abecdarian(s):
      index = 0
      while index &lt; len(s)-1:
          if s[index + 1] &gt; s[index]:
              return True
          index += 1
      return False
  print(is_abecdarian('babcd'))
  </code></pre>
  
  <p>If I switch my False and True around and switch the greater than to less than it works. What I do not understand is 'a' is not greater than 'b', yet when I run the above code it returns True.</p>