ref: a351bcdccdf5a4273bc8dc3360a48fbb8b8aa9ea dir: /idx/range.sort/
#!/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 $*