function spliceNodes(target, to) {
	'use strict';

	var firstFromFrame = to[0].node,
		sorterResult,
		t;
	for (var i = 0, l = target.length; i < l; i++) {
		t = target[i].node;
		sorterResult = axe.utils.nodeSorter(
			{ actualNode: t.element },
			{ actualNode: firstFromFrame.element }
		);
		if (
			sorterResult > 0 ||
			(sorterResult === 0 && firstFromFrame.selector.length < t.selector.length)
		) {
			target.splice.apply(target, [i, 0].concat(to));
			return;
		}
	}

	target.push.apply(target, to);
}
function spliceNodes(target, to) {
	'use strict';

	var firstFromFrame = to[0].node,
		sorterResult,
		t;
	for (var i = 0, l = target.length; i < l; i++) {
		t = target[i].node;
		sorterResult = axe.utils.nodeSorter(
			{ actualNode: t.element },
			{ actualNode: firstFromFrame.element }
		);
		if (
			sorterResult > 0 ||
			(sorterResult === 0 && firstFromFrame.selector.length < t.selector.length)
		) {
			target.splice.apply(target, [i, 0].concat(to));
			return;
		}
	}

	target.push.apply(target, to);
}
function spliceNodes ( target , to ) { 'use strict' ; var firstFromFrame = to [ 0 ] . node , sorterResult , t ; for ( var i = 0 , l = target . length ; i < l ; i ++ ) { t = target [ i ] . node ; sorterResult = axe . utils . nodeSorter ( { actualNode : t . element } , { actualNode : firstFromFrame . element } ) ; if ( sorterResult > 0 || ( sorterResult === 0 && firstFromFrame . selector . length < t . selector . length ) ) { target . splice . apply ( target , [ i , 0 ] . concat ( to ) ) ; return ; } } target . push . apply ( target , to ) ; }
Adds `to` to `from` and then re-sorts by DOM order
@private
@param	{Array} target	`nodes` array on a `RuleResult`
@param	{Array} to	 `nodes` array on a `RuleResult`
@return {Array}			The merged and sorted result
Adds to to from and then re - sorts by DOM order
Splice nodes from target to to