I have a gallery with images, these images can be dragged to another place and also dragged back. When dragging them back, a sort function places them at the correct place a