One way is to Format the 3 key fields (in desired order) then sort the
resultant character matrix to get the index, then "index each s" ...
idx=/: }. }: ":3{.s NB. Format 3 keys, ignore top/last line of '-'
(<idx) {&.> s
...
This produces your sorted result, but I don't really like this as it relies
on the format of the numeric and character (ok if integer, maybe not if
float), and may be affected by box drawing character types.
This is quick/dirty but I suspect more elegant ways will be offered.../Rob
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm