SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions
sort(direction)

Functions

template<type T>
sort (T[[1]] x, bool ascending)
 

Detailed Description

Sort a public vector.

Note
Supported types - bool / uint8 / uint16 / uint32 / uint / int8 / int16 / int32 / int / float32 / float64
Parameters
x- vector to be sorted
ascending- boolean indicating if the input should be sorted in ascending or descending order
Returns
x sorted according to the ordering specified by ascending

Function Documentation

◆ sort()

T sort ( T[[1]]  x,
bool  ascending 
)