The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
sort.sort
mir
ndslice
sorting
sort
Sort for one-dimensional Series.
Slice
!(
Iterator
,
N
,
kind
)
sort
(Slice!(Iterator, N, kind) slice)
T
[]
sort
(T[] ar)
Series
!(
IndexIterator
,
Iterator
,
N
,
kind
)
sort
(Series!(IndexIterator, Iterator, N, kind) series)
template
sort
(alias less = "a < b")
@
fmamath
static if
(
__traits(isSame, naryFun!less, less)
)
@
fmamath
Series
!(
IndexIterator
,
Iterator
,
N
,
kind
)
sort
(
IndexIterator
Iterator
size_t
N
SliceKind
kind
)
(
Series
!(
IndexIterator
,
Iterator
,
N
,
kind
)
series
)
if
(
N
== 1
)
Series
!(
IndexIterator
,
Iterator
,
N
,
kind
)
sort
(Series!(IndexIterator, Iterator, N, kind) series, Slice!SortIndexIterator indexBuffer, Slice!DataIterator dataBuffer)
Meta
Source
See Implementation
mir
ndslice
sorting
sort
functions
sort
Sort for one-dimensional Series.