Javascript sort
<p>Not sure what I am doing wrong.  I am trying to sort the results.</p>

<pre><code>function makeSidebar() {
    var html = "";
    for (var i=0; i&lt;gmarkers.length; i++) {
      if (!gmarkers[i].isHidden()) {
        html += '&lt;a href="javascript:myclick(' + i + ')"&gt;' + gmarkers[i].myteam + '&lt;\/a&gt;&lt;br&gt;';
      }
    }
    document.getElementById("side_bar").innerHTML = html;
}
</code></pre>

<p>I have tried html.sort(); and a few different ideas.</p>

<p>Thanks</p>
