function ascending( a, b ) {
	// Sort NaNs to the end...
	if ( isnan( a ) ) {
		return 1;
	}
	if ( isnan( b ) ) {
		return -1;
	}
	// Sort negative 0s to the left...
	if ( a === b && a === 0 ) {
		if ( isNegativeZero( a ) ) {
			return -1;
		}
		if ( isNegativeZero( b ) ) {
			return 1;
		}
		return 0;
	}
	if ( a > b ) {
		return 1;
	}
	if ( a < b ) {
		return -1;
	}
	return 0;
}
Determines sort order by comparing two values.

## Notes

-   Return values are as follows:

    -   `-1`: sort `a` to a lower index than `b` (i.e., `a` comes first)
    -   `1`: sort `b` to a lower index than `a` (i.e., `b` comes first)
    -   `0`: leave the order of `a` and `b` unchanged with respect to one another

@private
@param {number} a - first value
@param {number} b - second value
@returns {integer} value indicating sort order