Moving primative-array functions to a primitive comparison helper.