Hello, Look at the J code at http://www.rosettacode.org/wiki/Sorting_Using_a_Custom_Comparator#J
I think it misses the point of the problem. It asks to show the sorting facility of a programming language using a custom comparator, that is a tailored sorting facility. The variability should be pluggable. Look at the other solutions. The J solution given doesn't show that a flexible and pluggable sorting facility. For example, I think the following code is aimed closer to the point of the problem: load 'strings' sortby=: 1 : '] \: u&.>' (# ,[:-[: a.&i. tolower) sortby strings I am not sure if mine is a good J-ic approach. I'd be happy to see more J-ic way of doing it. Thanks. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
