Bixby Developer Center

References

each

optionalvalue required

Specifies a compound sort by providing one of more sorting expressions, ranking expressions, or both (together known as "ordering expressions"), in decreasing precedence. This node's value provides a binding to each result instance. All action inputs, in addition to the bound result, are in scope within the each block.

Example

...
each (r) {
sorting (r.price) {
by (Desc)
inverted
}
// compound in case of a tie
ranking (-1 * r.price)
}
...

Child Keys

ranking
optional
Specifies an expression that must evaluate to a number
sorting
optional
An expression that evaluates to a concept value, which will be used as a sort key for the concept being sorted