- TIBCO BusinessEvents®
- Standard
- Collections
- Comparator

# Collections.Comparator.compare()

## Signature

`int compare ( Object comparator, Object o1, Object o2 )`

## Domain

ACTION

## Description

Compares its two arguments for order.

## Parameters

Name | Type | Description
--- | --- | ---
`comparator` | `Object` | The Comparator object.
`o1` | `Object` | The first object to be compared.
`o2` | `Object` | The second object to be compared.

## Returns

Type | Description
--- | ---
`int` | A negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

## Cautions

none