title: Sorting a string array with uppercase first including accents
body: <p>So I was wandering around the internet searching for some sorting function in js. Here is the problem.
  We have a string array like this :</p>
  
  <pre><code>['único', 'UNICO', 'árbol', 'ARBOL', 'cosas', 'COSAS', 'fútbol', 'FUTBOL']
  </code></pre>
  
  <p>and we want somthing like this (Uppercase first):</p>
  
  <pre><code>['ARBOL', 'COSAS', 'FUTBOL', 'UNICO', 'árbol', 'cosas', 'fútbol', 'único']
  </code></pre>
  
  <p>or like this (lowercase first):</p>
  
  <pre><code>['árbol', 'cosas', 'fútbol', 'único', 'ARBOL', 'COSAS', 'FUTBOL', 'UNICO']
  </code></pre>
  
  <p>The thing is : it's really easy to get this :</p>
  
  <pre><code>['ARBOL', 'COSAS', 'FUTBOL', 'UNICO', 'cosas', 'fútbol', 'árbol','único']
  </code></pre>
  
  <p>with the <code>.sort();</code> function but we don't want the accentuated words at the end so we use the </p>
  
  <pre><code>.sort(function(a, b) {
    return a.localCompare(b);
  });
  </code></pre>
  
  <p>but we end up with this ...</p>
  
  <pre><code>['ARBOL', 'árbol', 'COSAS', 'cosas', 'FUTBOL', 'fútbol', 'UNICO', 'único']
  </code></pre>
  
  <p>Do you guys have any idea on how to combine both ?</p>