function sortedArray( values, stride, order ) {

	const nValues = values.length;
	const result = new values.constructor( nValues );

	for ( let i = 0, dstOffset = 0; dstOffset !== nValues; ++ i ) {

		const srcOffset = order[ i ] * stride;

		for ( let j = 0; j !== stride; ++ j ) {

			result[ dstOffset ++ ] = values[ srcOffset + j ];

		}

	}

	return result;

}
Sorts the given array by the previously computed order via `getKeyframeOrder()`.

@param {Array<number>} values - The values to sort.
@param {number} stride - The stride.
@param {Array<number>} order - The sort order.
@return {Array<number>} The sorted values.