rniemeyer/knockout-sortable — pull request #83 by Crunc (2014-01-28 11:04:49+00:00)
Title: move DOM nodes instead of removing and adding them again when moving an item within it's current list

First of all thank you for this great knockout binding, it saved me huge amount of time!

Currently DOM nodes are removed and a new DOM node is added, when an item is moved from its position to another position. This caused some trouble because i was doing some fancy layout stuff with the DOM nodes in the sortable list and whenever i moved an item in the list the DOM nodes got recreated and all the fancy stuff i did to them had to be done again. This caused some small performance issues and some severe layout issues due to transitions running again after moving an element and so on.

However i solved it by checking if an item is moved within it's current list. In that case the item is really moved instead of removing and adding it at another position.

Maybe this helps someone who has a similar problem.

Keep on the good work!

best regards,
Crunc