Sorting is performed in Raycaster.intersectObjects() and Raycaster.intersectObject().
Oh, ok, I was looking at the wrong place!
It would nice if the documentation of Mesh.raycast could state explicitly that the result is not ordered. Thanks!
Made a pull request.
First PR here!
@amitlzkpa welcome aboard!
Most helpful comment
16034
Made a pull request.
First PR here!