EMI: Compare the camera-space Z coordinates of actors instead of their Euclidean distance to the camera.
EMI: Get the sort order from the closest sector even if the current position is not contained within any sector.

This fixes Guybrush occasionally being visible through the buildings and foliage on Lucre island when walking at the edge of the walkable sectors. This happened because for positions at the edge of the walkable sector the method Sector::isPointInSector may not always return true.
EMI: Do not reset sort order when the set changes.

The original game doesn't reset the sort order. This fixes, for example, the voodoo anklet being visible through walls after leaving the jail set.
EMI: Only return a sector sort order if the nearest point on a sector is closer than 0.01 units.
EMI: Set sector sort order to 0 if the current sector does not specify a sort order.
Merge pull request #1026 from Akz-/emi-sortorder-fix

EMI: Sort order fixes