This function reduces a potentially nested order to its flattened representation, containing no nested groups. Entities are ordered in the result by their first appearance in the order object passed as input.
flattenOrder(x)
VariableOrder, DatasetOrder, VariableGroup, or DatasetGroup; or a
CrunchDataset or catalog that has an ordering
property.
x
, or its order resource, flattened.