Intersect indexes that return Array and Ref

I am having this same issue posted here Having issues returning results sorted by Date. It seems that Join() with a refbyref does not function as expected. The expected result is a set sorted by the order of the first index. In my case date and in this case price. But for some reason when the sorted index is passed into the Lambda() the result seems to get unsorted again. Strange.