MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / sort

Method sort

sql/sql_array.h:209–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 typedef int (*CMP_FUNC)(const Elem *el1, const Elem *el2);
208
209 void sort(CMP_FUNC cmp_func)
210 {
211 my_qsort(array.buffer, array.elements, sizeof(Elem), (qsort_cmp)cmp_func);
212 }
213};
214
215#endif /* SQL_ARRAY_INCLUDED */

Callers

nothing calls this directly

Calls 1

my_qsortFunction · 0.85

Tested by

no test coverage detected