I'm new to cython, and I'm trying to write an algorithm that needs to repeatedly sort partially sorted arrays. It appears that python's standard sort (timsort?) is quite good for this, but I haven't figure out how to call this function from inside a cythonized function.
Namely, I want to do something like:
cdef void myfunc(double* y) nogil:
double *y_sort = sort(y)
Any pointers on how to do this would be appreciated.