##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: October 2016 # Modified: 2016-10-13/16:35-0400 ##+ # # sortf.icn, sort a structure by subfield index # link fullimag procedure main() L := [[9,3,6], [4,2,7], [3,9,1], []] write("original: ", fullimage(L)) write("field 1 : ", fullimage(sortf(L, 1))) write("field 2 : ", fullimage(sortf(L, 2))) write("field 3 : ", fullimage(sortf(L, 3))) end