data diff BUGFIX incorrect sorting of the distances of the reordered lists
data diff BUGFIX incorrect sorting of the distances of the reordered lists

incorrect insertion of the item with the lower distance value - instead of
inserting it at the end of the list, it was inserted at the beginning, so in
case the lower value was lastly inserted and zero (the last instance of the
list wasn't moved), lyd_diff() reported that there were no move (reordering)
at all.

Fixes #240

PavolVican/libyang,PavolVican/libyang,PavolVican/libyang,PavolVican/libyang,PavolVican/libyang