1.1 --- a/src/ucx/array.h Wed Aug 07 20:45:21 2019 +0200 1.2 +++ b/src/ucx/array.h Wed Aug 07 21:14:58 2019 +0200 1.3 @@ -234,8 +234,12 @@ 1.4 /** 1.5 * Sorts a UcxArray with the best available sort algorithm. 1.6 * 1.7 - * A merge sort algorithm is used, which is guaranteed to use no more additional 1.8 - * memory than for exactly one element. 1.9 + * The qsort_r() function is used, if available (glibc, FreeBSD or MacOS). 1.10 + * The order of arguments is automatically adjusted for the FreeBSD and MacOS 1.11 + * version of qsort_r(). 1.12 + * 1.13 + * If qsort_r() is not available, a merge sort algorithm is used, which is 1.14 + * guaranteed to use no more additional memory than for exactly one element. 1.15 * 1.16 * @param array the array to sort 1.17 * @param cmpfnc the function that shall be used to compare the element data