Fix for broken sort in isIP method.

For javascript sort to arrange numbers in numerical order it requires a function be passed that does the math for the sort.