Grade Down RββY
Y may be any array of rank greater than 0 but may not contain namespaces. R is an integer vector being the permutation of β³1ββ΄Y that places the sub-arrays along the first axis in descending order. For the rules for comparing items of Y with one another, see Grade Up.
βIO is an implicit argument of Grade Down.
Examples
β22.5 1 15 3 Β―4
1 3 4 2 5
M
2 3 5
1 4 7
2 3 4
5 2 4
2 3 5
1 2 6
βM
1 3 2
Note
Character arrays sort differently in the Unicode and Classic Editions.
M
Goldilocks
porridge
Porridge
3 bears
| Unicode Edition | Classic Edition |
|---|---|
| |
| |
β΄pb
6 3
pb
ββββββββββ¬ββββββ¬ββββ
βRivers βJasonβ554β
ββββββββββΌββββββΌββββ€
βDaintreeβJohn β532β
ββββββββββΌββββββΌββββ€
βRivers βJasonβ543β
ββββββββββΌββββββΌββββ€
βFoad βJay β558β
ββββββββββΌββββββΌββββ€
βScholes βJohn β547β
ββββββββββΌββββββΌββββ€
βScholes βJohn β535β
ββββββββββ΄ββββββ΄ββββ
βpb
5 6 1 3 4 2