Raycaster object order like renderOrder

I have added 2 planes & translated one plane as shown in image.

When I clicked on canvas and trying to get intersecting objects.
It is always giving me last added mesh.

Is there any way by which I can give preference to desired mesh first?

I belive you should be able to manually .sort() the list of objects you can pass to the raycaster, right?

I think like this.
if you want to prefer specific mesh, it means that you can indicate that mesh. right?
then, you can give the onpointerdown event on that mesh independently to detect that mesh is clicked or not. and if need you can implement the raycaster inside that event function.

Raycast returns all intersected objects, not only the last one, and the returned objects are always sorted by distance from the origin of the ray until the respective intersection - docs.