InfluxDB Cloud: sort tables in Flux query to setup graph tooltip

I have following graph in InfluxDB Cloud:


As you can see order of records in tooltip is not the same as order of lines on graph. Each line represents a table returned from tables stream by Flux query.

I want to reorder records in tooltip in a way the top one corresponds top line on graph and the bottom record corresponds the bottom line. It seems content of tooltip depends on result of Flux query. I tried different combinations of group/sort functions to reorder tables in tables stream without luck. Tables are always sorted in the same way.

Is it possible to adjust tables order to change tooltip records order?