Javascript appending a line break at the end of every outputted array value
<p>When I run the following code the br is appended to the end of the the dates list. I am trying to get the br to append after every date value in the array. I tried using a for loop but that doesn't seem to work. What am I doing wrong?</p>

<pre><code>dates = ['2012-09-06 22:39:29', '2012-09-06 22:41:02', '2012-11-05 15:01:10', '2012-11-06 15:37:58', '2012-09-08 10:22:00'];

$('#hi').append(dates.sort() + '&lt;br&gt;');
</code></pre>

<p>For loop:</p>

<pre><code>for(i = 0; i &lt; dates.length; i++) {
    $('#hi').append(dates.sort() + '&lt;br&gt;');
}
</code></pre>
