Plan 9 from User Space's /usr/local/plan9/src/cmd/index/range.sort

# 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   $*

Space Glenda

Copyright © 2005 Lucent Technologies, Russ Cox, MIT.
See license for details.