Preparing search index...
The search index is not available
iteragain - v4.2.0
iteragain
sort
sort
Function sort
sort
<
T
extends
IteratorOrIterable
<
unknown
>
>
(
comparator
?:
(
a
:
IterSource
<
T
>
,
b
:
IterSource
<
T
>
)
=>
number
,
)
:
(
arg
:
T
)
=>
IterableIterator
<
IterSource
<
T
>
>
Collects all values from the input iterator, then sorts them.
Type Parameters
T
extends
IteratorOrIterable
<
unknown
>
Parameters
Optional
comparator
:
(
a
:
IterSource
<
T
>
,
b
:
IterSource
<
T
>
)
=>
number
Returns
(
arg
:
T
)
=>
IterableIterator
<
IterSource
<
T
>
>
sort
<
T
extends
IteratorOrIterable
<
unknown
>
>
(
arg
:
T
,
comparator
?:
(
a
:
IterSource
<
T
>
,
b
:
IterSource
<
T
>
)
=>
number
,
)
:
IterableIterator
<
IterSource
<
T
>
>
Collects all values from the input iterator, then sorts them.
Type Parameters
T
extends
IteratorOrIterable
<
unknown
>
Parameters
arg
:
T
Optional
comparator
:
(
a
:
IterSource
<
T
>
,
b
:
IterSource
<
T
>
)
=>
number
Returns
IterableIterator
<
IterSource
<
T
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
iteragain - v4.2.0
Loading...
Collects all values from the input iterator, then sorts them.