@@ -95,7 +95,7 @@ native void SortStrings(char[][] array, int array_size, SortOrder order = Sort_A
95
95
* 0 if first is equal to second
96
96
* 1 if first should go after second
97
97
*/
98
- typedef SortFunc1D = function int (int elem1 , int elem2 , const int [] array , any data );
98
+ typedef SortFunc1D = function int (any elem1 , any elem2 , const any [] array , any data );
99
99
100
100
/* *
101
101
* Sorts a custom 1D array. You must pass in a comparison function.
@@ -105,7 +105,7 @@ typedef SortFunc1D = function int (int elem1, int elem2, const int[] array, any
105
105
* @param sortfunc Sort function.
106
106
* @param data Optional Handle or value to pass through the comparison calls.
107
107
*/
108
- native void SortCustom1D (int [] array , int array_size , SortFunc1D sortfunc , any data =0 );
108
+ native void SortCustom1D (any [] array , int array_size , SortFunc1D sortfunc , any data =0 );
109
109
110
110
/* *
111
111
* Sort comparison function for 2D array elements (sub-arrays).
@@ -127,7 +127,7 @@ typedef SortFunc2D = function int (any[] elem1, any[] elem2, const any[][] array
127
127
* @param array Array to sort.
128
128
* @param array_size Size of the major array to sort (first index, outermost).
129
129
* @param sortfunc Sort comparison function to use.
130
- * @param hndl Optional Handle to pass through the comparison calls.
130
+ * @param data Optional Handle or value to pass through the comparison calls.
131
131
*/
132
132
native void SortCustom2D (any [][] array , int array_size , SortFunc2D sortfunc , any data =0 );
133
133
@@ -160,6 +160,6 @@ typedef SortFuncADTArray = function int (int index1, int index2, Handle array, a
160
160
*
161
161
* @param array Array Handle to sort
162
162
* @param sortfunc Sort comparison function to use
163
- * @param data Optional Handle or data to pass through the comparison calls.
163
+ * @param data Optional Handle or value to pass through the comparison calls.
164
164
*/
165
165
native void SortADTArrayCustom (Handle array , SortFuncADTArray sortfunc , any data =0 );
0 commit comments