[2.3] - Added log when a resource (and context) are sorted from the tree.

Should fix #11181