Tab just cycles through the visible mobs left to right, regardless of how far away they are.