title: Definition of a lexicographical order?
body: <p>I am currently reading about the <a href="http://en.cppreference.com/w/cpp/algorithm/next_permutation" rel="nofollow noreferrer">std::next_permutation</a> function and encountered the term "lexicographical order". At the particular time, I had no experience with this term whatsoever so did a google search for this and found only somewhat cryptic definitions of this type of order, including the wiki article (at least they are to me).</p>
  
  <p>So could anybody try to help me understand this? What is a "good" definition of this term to you?</p>
  
  <p>Regarding the <a href="https://en.wikipedia.org/wiki/Lexicographical_order" rel="nofollow noreferrer">wiki article</a> - they claim that <em>lexicographical order</em> is also known as <em>alphabetical order</em> but as I continue reading, I get the understanding that they are not the same. Thus, the ongoing comparison confuses me a bit.</p>