function isSortedAscending( x ) {
	var len;
	var get;
	var dt;
	var v1;
	var v2;
	var i;

	// Resolve the input array data type:
	dt = dtype( x );

	// Resolve an accessor for retrieving input array elements:
	if ( isAccessorArray( x ) ) {
		get = accessorGetter( dt );
	} else {
		get = getter( dt );
	}
	// Get the number of elements over which to iterate:
	len = x.length;

	// Check for an empty array:
	if ( len === 0 ) {
		return false;
	}
	// Loop over the elements...
	v1 = get( x, 0 );
	for ( i = 1; i < len; i++ ) {
		v2 = get( x, i );
		if ( v1 > v2 ) {
			return false;
		}
		v1 = v2;
	}
	return true;
}
Tests if an array is sorted in ascending order.

@param {Collection} x - input array
@returns {boolean} boolean indicating if an array is sorted in ascending order

@example
var out = isSortedAscending( [ 1, 2, 3 ] );
// returns true

@example
var out = isSortedAscending( [ 3, 2, 1 ] );
// returns false

@example
var out = isSortedAscending( [ 3, 3, 3 ] );
// returns true

@example
var out = isSortedAscending( [ 3 ] );
// returns true

@example
var out = isSortedAscending( [] );
// returns false

@example
var out = isSortedAscending( [ 1, 3, 2 ] );
// returns false