I spent quite some time on this bug today and there was a slight problem with my sort function which I corrected,
Wonderful! Thank you for the updates. I see that you have attached the new version to DERBY-6783, and I will try to download that to my sandbox and see what behavior I see. thanks, bryan