@staticmethod
def sort_key(field):
    """ Get a key to sort a field

        Args:
            field (:obj:`ChartDataField`): field

        Returns:
            :obj:`tuple`
        """
    return (field.name, field.shape.value if field.shape else None, field.
        type.value if field.type else None)
