title: Lexicographic Order in Java
body: <p>How is the lexicographic order defined in Java especially in reference to special characters like <code>!</code>, <code>.</code> and so on?</p>
  
  <p>An examplary order can be found <a href="http://sheepsystems.com/bookdog/HelpBook/LexicalOrder.html" rel="noreferrer">here</a></p>
  
  <p>But how does Java define it's order? I ask because I'm sorting Strings on Java and on Oracle and come up with different results and can't find the specification for the lexicographic order.</p>