_desc
Sort this list in descending order --
Function
Anything -> _desc
(exp) -> The same Type
- Receives
- A List of any sort
- exp
- An expression, that you would use in _sort, which you want to reverse the order for
- Produces
- The sort term, reversed
_desc returns the given EXP, tweaked so that the values in it have the reversed sort order from
what they would normally have. It is usually used inside of _sort, to reverse the sort order, which
is normally in ascending order.
For example, say that your Space was for Groceries, and you wanted to sort them by Price, with the most
expensive on top. That would look something like:
[[Grocery Item._instances -> _sort(_desc(Price))]]
That is, "Sort the instances of Grocery Item, in descending order of Price".