shithub: 9intro

ref: 2b99422480d596ebc26921c87c6bb81a07949f3e
dir: /idx/range.sort/

View raw version
#!/bin/rc
# range.sort
#   Input/Output: string (tab) ["b"|"e"|"a"] (tab) number
#   Sort by $1 (string), $3 (number), then $2 ("b"|"e"|"a")

sort -u '-t	' +0 -1   +2n   +1 -2   $*