Have you considered adapting the following?
http://www.jsoftware.com/jwiki/Essays/Quicksort
(Or any other comparison sort function.)



----- Original Message -----
From: Marshall Lochbaum <[email protected]>
Date: Wednesday, August 17, 2011 12:36
Subject: [Jprogramming] Sort with a comparison function
To: [email protected]

> I have a list of things--specifically, ordinal numbers in Cantor 
> normalform--and an ordering relation that tells me whether the 
> difference of two
> of them is positive, negative, or zero (analogous to *@-~ for J 
> numbers). Is
> there an efficient J way to perform this sort?

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to