fix dropping after sorting