function filterTags( tags, names ) {
	var out;
	var i;

	out = [];
	for ( i = 0; i < tags.length; i++ ) {
		if ( contains( names, tags[ i ].name ) ) {
			out.push( tags[ i ] );
		}
	}
	return out;
}
Filters section tag objects (nodes) based on a list of provided tag names.

@private
@param {ObjectArray} tags - list of tag objects
@param {Array} names - list of tag names
@returns {Array} filtered array