@staticmethod
def _flavor_ordering_key(flavor):
    """
        Return the value to use when sorting flavors.

        By default, flavors are sorted lexicographically by:
        - nr. of vCPUS (first),
        - amount of RAM,
        - size of disk (last).
        """
    return flavor.vcpus, flavor.ram, flavor.disk
