SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions
sort(direction)

Functions

template<type T>
T sort (T 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()

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