javascript's string comparision and comparision operators were not working?
<p>I'm working out javascript cookbook by shelley powers. And in the book, </p>

<blockquote>
  <p>If two string literals only vary based on case, the uppercase characters are lexically
  greater than the lowercase letter:</p>
</blockquote>

<pre><code>var sOne  = "Cat";
var sTwo  = "cat";
if (sOne &gt;=  sTwo) // true, because 'C' is lexically greater than 'c'
</code></pre>

<p>but I cannot get the same result. this only works for me:</p>

<pre><code> var sOne = "Cat";
 var sTwo = "cat";
 if (sOne &lt; sTwo) alert("whatever here"); 
</code></pre>

<p>Here it pops up a alert.I'm pretty confusion.Thanks guys!</p>
