@staticmethod
    def objects_sortkey(kv):
        """The 'objects' dict are sorted by isa first. This way we get the
        sections, e.g. /* Begin PBXBuildFile section */.
        The secondary sort key is the gid which creates the proper
        order within the sections.
        """
        try:
            return kv[1].get('isa'), kv[0]
        except __HOLE__:
            return kv[0]
dataset/ETHPy150Open mikr/xcodeprojer/xcodeprojer.py/Unparser.objects_sortkey