change compare method for mobile safari