- TIBCO BusinessEvents®
- Standard
- Collections
- SortedMap

# Collections.SortedMap.comparator()

## Signature

`Object comparator ( Object map )`

## Domain

ACTION

## Description

Returns the comparator used to order the keys in this map, or null if this map uses the Comparable natural ordering of its keys.

## Parameters

Name | Type | Description
--- | --- | ---
`map` | `Object` | Instance of SortedMap

## Returns

Type | Description
--- | ---
`Object` | the comparator used to order the keys in this map, or `null` if this map uses the natural ordering, of its keys

## Cautions

none