Sortable: Unstable sorting

Sortable: Improved sorting stability. Fixed #9041. Sorting unstable while dragging.