How do you sort letters in JavaScript, with capital and lowercase letters combined?
<p>I'm working on a JavaScript (jQuery's OK too if this needs it, but I doubt it will) function to alphabetize a string of letters. Let's say the string that I want to sort is: "ACBacb".</p>

<p>My code as of now is this:</p>

<pre><code>var string='ACBacb';
alert(string.split('').sort().join(''));
</code></pre>

<p>This returns ABCabc. I can see why that happens, but that is not the format that I am looking for. Is there a way that I can sort it by putting the same letters next to each other, capital letter first? So when I put in ACBacb, I get AaBbCc?</p>
