def __dragMove( self, listing, event ) :

		d = self.__pathListing.getPath().dict()

		srcPath = self.__pathListing.getPath().copy().setFromString( event.data[0] )
		srcIndex = d.keys().index( srcPath[0] )

		targetPath = self.__pathListing.pathAt( event.line.p0 )
		if targetPath is not None :
			targetIndex = d.keys().index( targetPath[0] )
		else :
			targetIndex = 0 if 1 < event.line.p0.y else len( d )

		if srcIndex == targetIndex :
			return True

		items = d.items()
		item = items[srcIndex]
		del items[srcIndex]
		items.insert( targetIndex, item )

		d.clear()
		d.update( items )

		self.__pathListing.getPath().pathChangedSignal()( self.__pathListing.getPath() )

		return True
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferUI/UIEditor.py/_PresetsEditor.__dragMove/swapped operands of `<`