#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# ArraySort Class

Defined in: `arraysort/js/arraysort.js:11`
Module: arraysort

Provides a case-insenstive comparator which can be used for array sorting.

- Index
- Methods

## Item Index

### Methods

- compare

## Methods

### `compare`

(

- `a`
- `b`
- `desc`

)
Boolean

Defined in `arraysort/js/arraysort.js:19`

Comparator function for simple case-insensitive sorting of an array of strings.

#### Parameters:

- `a` Object

  First sort argument.

- `b` Object

  Second sort argument.

- `desc` Boolean

  `true` if sort direction is descending, `false` if sort direction is ascending.

#### Returns:

Boolean: -1 when a < b. 0 when a == b. 1 when a > b.