aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/index/range.sort
blob: e2cdd493abca17cb3b5b47b2f8eee793beeec31c (plain)
1
2
3
4
5
# 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   $*