hmmm...

 Code:
? compareverstring("10.1.183.7","10.1.183.10")
? compareverstring("10.1.183.10","10.1.183.7")


with original code... -1 for either
with mod code ... 1 for either