/** * @module util/orderProperties */ import schema from '@stencila/schema'; /** * Transform an `Entity` node (and all it's descendant entities) * by ordering it's properties. * * The order is designed to be deterministic (i.e. not dependent upon * the order properties were defined in code) and human readable * (e.g. `type` first, often long `content` last). */ export default function orderProperties(node: schema.Node): schema.Node;