function baseCompareAscending(a, b) {
    if (a !== b) {
      if (a > b || typeof a == 'undefined') {
        return 1;
      }
      if (a < b || typeof b == 'undefined') {
        return -1;
      }
    }
    return 0;
  }
The base implementation of `compareAscending` used to compare values and
sort them in ascending order without guaranteeing a stable sort.

@private
@param {*} a The value to compare to `b`.
@param {*} b The value to compare to `a`.
@returns {number} Returns the sort order indicator for `a`.