comparing 2 strings alphabetically for sorting purposes
<p>I'm trying to compare 2 strings alphabetically for sorting purposes. For example I want to have a boolean check like <code>if('aaaa' &lt; 'ab')</code>. I tried it, but it's not giving me correct results, so I guess that's not the right syntax. How do I do this in jquery or Javascript?</p>
