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.

flattenOrder(x)

Arguments

x

VariableOrder, DatasetOrder, VariableGroup, or DatasetGroup; or a CrunchDataset or catalog that has an ordering property.

Value

x, or its order resource, flattened.