1 point by anonymous 5 months | 1 comment
remi-quentin_92 5 months | flag

If you want to rank in decreasing order, you can either:

scan with a minus sign
```envision
table T = with
[| as N |]
[| 0 |]
[| 1 |]
[| 2 |]
[| 3 |]

T.rk = rank() scan -T.N

show table "" a1b4 with
T.N
T.rk
```

or use rankrev function


table T = with
[| as N |]
[| 0 |]
[| 1 |]
[| 2 |]
[| 3 |]

// equivalent to rank() scan -T.N
T.rk = rankrev() scan T.N

show table "" a1b4 with
T.N
T.rk