rniemeyer/knockout-sortable — pull request #67 by stalniy (2013-09-14 09:42:34+00:00)
Title: Decreased amount of updates

I rewrote a part of the code which is responsible for updating item position. So, now if you move items inside one array `foreach` binding receives only one update from the observable array. In this case when it calls `ko.utils.compareArrays` it receives comparing results where each item `status` equals `retained`. So, foreach will not re-render any items. And dom manipulations (moving items) can be under responsibility of jquery sortable plugin. You can check this plunker: http://plnkr.co/edit/P7F12EDG9v5iWHN5JvEA?p=preview . Open console and you will see that `new item created` will be only shown in 2 cases:
1. initial rendering
2. if added new item from another source

And another plunker for draggable: http://plnkr.co/edit/P7F12EDG9v5iWHN5JvEA