At 8:02 PM -0500 11/8/01, Raymond E. Griffith wrote:
>> To get the results back in numeric order, after the combine try:
>> 
>> sort lines of B numeric
>> 
>This won't work. Suppose that that array A is [[ -4  -3  -2  -1   0   1   2
>3 ]] and that the operation is "put A*A into B"

Ah -- sorry, I was just proposing that based on the specific case you offered. What 
you need is not a way to sort the results into numeric order, but into the order of 
the original keys. I think you're out of luck.

>
>The result should be [[ 16   9   4   1   0   1   4   9 ]]
>
>Also, consider two arrays with numeric nonordered data which are added
>together.
>
>Sort numeric on the "combined" array would defeat the proper order. What we
>need is a way to get the array to not mix up its keys upon "split", or else
>to return the proper order upon "combine".
>
>But thanks! Any other suggestions?

I'll think about it...

gc


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to