Ok, we'll implement sorting entities by z only.