shithub: 9intro

ref: 87288afa5ac476efb3ef1ed40df658427339f13e
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   $*