What is the logic underlying javascript string comparisons?
<p>Apparently, the below javascript prints TRUE.</p>

<pre><code>var s = "hippo";
var t = "Hippo";
var test = (s &gt; t);
document.write(test ? "TRUE" : "FALSE");​
</code></pre>

<p>What makes "hippo" greater than "Hippo"? The ASCII value for H is greater than the ASCII value of h.</p>

<p>What is the logic underlying javascript string comparisons?</p>

<p><a href="http://jsfiddle.net/dUadG/1/" rel="nofollow">http://jsfiddle.net/dUadG/1/</a></p>
