# ApplicationInsightsResourceIdentifierProxy.compareTo

- Module: [Aspire.Hosting.Azure.Provisioning.ApplicationInsights](/reference/api/typescript/aspire.hosting.azure.provisioning.applicationinsights.md)
- Defined on: [ApplicationInsightsResourceIdentifierProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.applicationinsights/applicationinsightsresourceidentifierproxy.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`

Invokes CompareTo on the ResourceIdentifier provisioning model.

## Definition

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

## Signature

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

## Parameters

- `other` ([ApplicationInsightsResourceIdentifierProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.applicationinsights/applicationinsightsresourceidentifierproxy.md))

## Returns

`number`

## Defined on

- [ApplicationInsightsResourceIdentifierProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.applicationinsights/applicationinsightsresourceidentifierproxy.md) -- `handle`
