[API](/solutions/geotoolkit/geotoolkit_js/apis/readme) / [geotoolkit](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit) / [schematics](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics) / [data](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#data) / [sort](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#sort) / [FunctionalSortComponents](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#functionalsortcomponents) / FunctionalSortComponents

# Class: FunctionalSortComponents

[sort](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#sort).[FunctionalSortComponents](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#functionalsortcomponents).FunctionalSortComponents

General sorting class: sorts well bore components according to customer's function

## Hierarchy

- [`SortComponents`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.data-2.sort.sortcomponents.sortcomponents)
↳ **`FunctionalSortComponents`**


## Table of contents

Constructors
- [new FunctionalSortComponents(f)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.schematics.data-2.sort.functionalsortcomponents.functionalsortcomponents.md#new functionalsortcomponents(f))


Methods
| [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.data-2.sort.functionalsortcomponents.functionalsortcomponents#getclassname) | [sort](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.data-2.sort.functionalsortcomponents.functionalsortcomponents#sort) | [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.data-2.sort.functionalsortcomponents.functionalsortcomponents#getclassname-1) |
|  --- | --- | --- |


## Contents

Constructors
#### new FunctionalSortComponents(f)

• **new FunctionalSortComponents**(`f`)

#### Parameters

| Name  | Type  |
|  --- | --- |
| `f` | (`data`: [`Elements`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#wellboredata#elements)[]) => [`Elements`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#wellboredata#elements)[] |


#### Overrides

SortComponents.constructor

Methods
#### getClassName

▸ **getClassName**(): `string`

#### Returns

`string`

#### Inherited from

[SortComponents](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.data-2.sort.sortcomponents.sortcomponents).[getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.data-2.sort.sortcomponents.sortcomponents#getclassname)

#### sort

▸ **sort**(`data`): [`Iterator`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.iterator.iterator)<[`Elements`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#wellboredata#elements)&gt;

Sorts well bore components data

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `data` | [`Elements`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#wellboredata#elements)[] | [`WellBoreData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.data-2.wellboredata.wellboredata) | well bore components data |


#### Returns

[`Iterator`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.iterator.iterator)<[`Elements`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#wellboredata#elements)&gt;

ierator over sorted components

#### Overrides

[SortComponents](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.data-2.sort.sortcomponents.sortcomponents).[sort](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.data-2.sort.sortcomponents.sortcomponents#sort)

#### getClassName

▸ `Static` **getClassName**(): `string`

#### Returns

`string`

#### Inherited from

[SortComponents](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.data-2.sort.sortcomponents.sortcomponents).[getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.data-2.sort.sortcomponents.sortcomponents#getclassname-1)