title: Reverse an array in Knockout.js
body: <p>I'm learning how to use Knockout.js.  I want to show the observableArray content reversed, so I use the Knockout reverse function this way:</p>
  
  <pre><code>   &lt;ul  data-bind="foreach: anObservableArray.reverse()" &gt;...&lt;/ul&gt;
  </code></pre>
  
  <p>But, it doesn't work and no errors occurs. When I try this:</p>
  
  <pre><code>&lt;ul  data-bind="foreach: anObservableArray.slice(0).reverse()" &gt;...&lt;/ul&gt;
  </code></pre>
  
  <p>It works as expected.  My question is why should I have to copy the entire array when the  reverse function already returns an reversed array?.</p>