rsort

Array

Sorts an array in descending order. Identical to sort but reverses the result. Without an argument, sorts primitives from highest to lowest. With a field argument, sorts objects by that field descending.

Syntaxrsort:field?
fieldoptionalObject field to sort by descending. Omit for primitive arrays.

Use cases

All commands