asc

From The K Language Wiki
Asc
asc t
Supported in K7

asc is a dict/table primitive which orders key and value pairs by their value, in ascending order.

 asc  1 2 3!(3 2;2 4; 4 5)
2|2 4
1|3 2
3|4 5