title: knockout js force rebind after sorting array items
body: <p>Having trouble with knockout js. But seems to me it's a bug. Maybe there are some workaround.</p>
  
  <p>There is an example of sorting list <a href="http://jsbin.com/knockoutsortable/20/edit#javascript,html" rel="nofollow">here</a> and it works. And there is <a href="http://jsbin.com/erovah/3/edit" rel="nofollow">another example</a> and it doesn't. The only difference between them is version of KO. </p>
  
  <p>Any help would be appreciated.</p>
  
  <p><strong>Update:</strong>
  I don't know the reason but after calling splice method KO refreshes binding in some incorrect way. So the workaround I've found - force rebind array model.</p>
  
  <p>The code I use to force rebinding is follows:</p>
  
  <pre><code>        // newArray is ko.observableArray([...])
          var original = newArray();
          newArray([]);
          newArray(original); // KO will rebind this array
  </code></pre>
  
  <p>Is there more elegant way to force rebinding?</p>