added valuesinanyorder code for dragdrop