sort

Sorts the input objects.

Usage: tea:sort [options]

where

[options] can be one of the following:
  • --ignore-leading-blanks or -b: ignores leading blanks.
  • --numeric-sort or -n: compares according to the string numerical value.
  • --unique or -u: displays only the first of an equal run.
  • --reverse or -r: reverses the result of comparisons.
  • --ignore-case or -f: changes lowercase to uppercase characters.
admin@localhost:/TEA> ls
members
agents
users
groups
roles
realms
machines
solutions

admin@localhost:/TEA> ls | sort -r
users
solutions
roles
realms
members
machines
groups
agents
Related concepts