# CdnResourceIdentifierProxy.compareTo

- Module: [Aspire.Hosting.Azure.Provisioning.Cdn](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn.md)
- Defined on: [CdnResourceIdentifierProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnresourceidentifierproxy.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`

Invokes CompareTo on the ResourceIdentifier provisioning model.

## Definition

```typescript
interface CdnResourceIdentifierProxy {
  // ... omitted for brevity
  compareTo(other: CdnResourceIdentifierProxy): number;
}
```

## Signature

```typescript
compareTo(other: CdnResourceIdentifierProxy): number
```

## Parameters

- `other` ([CdnResourceIdentifierProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnresourceidentifierproxy.md))

## Returns

`number`

## Defined on

- [CdnResourceIdentifierProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnresourceidentifierproxy.md) -- `handle`
