function makeSequence(object, orderedKeys) {
  const length = orderedKeys.length;
  const sequence = new Array(length);
  for (let i = 0; i < length; ++i) {
    sequence[i] = object[orderedKeys[i]];
  }
  return sequence;
}
Create an array of `values` to be used with {@link module:ol/xml.serialize} or
{@link module:ol/xml.pushSerializeAndPop}, where `orderedKeys` has to be provided as
`key` argument.
@param {Object<string, *>} object Key-value pairs for the sequence. Keys can
    be a subset of the `orderedKeys`.
@param {Array<string>} orderedKeys Keys in the order of the sequence.
@return {Array<*>} Values in the order of the sequence. The resulting array
    has the same length as the `orderedKeys` array. Values that are not
    present in `object` will be `undefined` in the resulting array.