I understand about multiple issues. I'll try to keep them separate in the future. Thanks.
You looked into this pretty deeply, and it reminds me of a mathematicians proof. They can be more litigious than lawyers, and necessarily so.
I didn't submit my case well. I just find it curious that if you run the min/max code on
ranges =[ 1...4 ,0...0 ,1...6 ,3...5 ,0...0 ,2...4 ,3...7 ]
you get a min=1 and max=7, and that is what I expect when looking at the data.
But now swap the first and second entries so that:
ranges = [ 0...0 ,1...4 ,1...6 ,3...5 ,0...0 ,2...4 ,3...7 ]
the result is min=0 and max=0
It is the same data, just rearranged. The results are dramatically different. The reason for it still eludes me.
Filtering is a good way to go. Thanks.