⍒
Grade Down r←⍒y
r
is the indices that would sort the major cells of y
in descending order according to total array ordering. Grading is stable, that is, the indices of two cells that are equal appear in r
in the same order as the cells themselves.