1 #ifndef SQL_SORT_INCLUDED
2 #define SQL_SORT_INCLUDED
20 #include "my_global.h"
26 typedef struct st_sort_field SORT_FIELD;
70 qsort_cmp2 key_compare;
71 const void *key_compare_arg;
81 uint max_keys_per_buffer;
83 ha_rows examined_rows;
85 SORT_FIELD *local_sortorder;
97 memset(
this, 0,
sizeof(*
this));
99 void init_for_filesort(uint sortlen,
TABLE *
table,
100 ulong max_length_for_sort_data,
101 ha_rows maxrows,
bool sort_positions);
111 IO_CACHE *to_file, uchar *sort_buffer,