function compare(val, number) {
  if (val === number) {
    return 0;
  } else if (val < number) {
    return -1;
  } else if (val > number) {
    return 1;
  }
}
@method compare
@param {Number} val
@param {Number} number
@return {Number}
 0: same
-1: <
 1: >