Bug: MultiboxTraceByChannel returning wrong results

I’m having a weird problem:

According to the manual, MultiBoxTraceByChannel returns all hits sorted from start to finish.

If I test against the same meshes but from different locations I get different results:

See here for a video that shows the problem: Screen Recording 2021-07-28 at 21.28.25

Obviously MultiBoxTraceByChannel does not reliably sort the hits. Is this a bug?