Yes it is the magnitude. The mixed decending order has all the +'s at the top ( ie 5.06 comes before -6.34). Using ABS value would definitely get that 6.34 before the 5.06 but you can't tell which array it orginated from. But if the 5 was green and the ABS(-6) was red, then the origin is very clear. Over time, as the data increases, the wanning/strengthing of the mixed array becomes very apparent when you can easily tell if the mix is weighted towards the + green or - red. Thanks for the suggestion. BTW if you ever write a book on the life and times of a bplus programmer, I'd love to buy a copy.
LOL yes, I will spend a whole chapter on this:
https://www.qb64.org/forum/index.php?topic=2756.0Seems to me, with the two arrays already separated you could track theGreatestNegative (tGN) from the one array and theGreatestPositive (tGP) from the other array decide:
do
if tGN > tGP then
color Negative: print tGN
get next greatest negative 'probably need an negative index tracking progress through array
ELSE
color Positive : print tGP
get next greatest positive ' probably need an positive index tracking progress through array
end if
Loop until all the greatest have been reported
I remember (for the book) at Walter's Forum doing this to merge 10+ separate files into one sorted one, the files were already sorted, oh but I did not track a color for each file source that would be fun!