public static int compare(StorageType a, StorageType b) {
            if (a == any) a = remote;
            if (b == any) b = remote;

            if (a == remote && b == local) return -1;
            if (a == local && b == remote) return 1;
            return 0;
        }
Compares storage type by cost: Remote is cheaper, and therefore before.
Any can be remote and therefore costs the same as remote.
config-provisioning/src/main/java/com/yahoo/config/provision/NodeResources.java