# AppContainersResourceIdentifierProxy.compareTo

- Module: [Aspire.Hosting.Azure.Provisioning.AppContainers](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers.md)
- Defined on: [AppContainersResourceIdentifierProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/appcontainersresourceidentifierproxy.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`

Invokes CompareTo on the ResourceIdentifier provisioning model.

## Definition

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

## Signature

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

## Parameters

- `other` ([AppContainersResourceIdentifierProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/appcontainersresourceidentifierproxy.md))

## Returns

`number`

## Defined on

- [AppContainersResourceIdentifierProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/appcontainersresourceidentifierproxy.md) -- `handle`
