Sorting

A fast Merge sort implementations for sorting integers and pointers

f_sort_ids

uint *f_sort_ids(uint length, uint *ids, boolean (*compare_func)(uint bigger, uint smaller, void *user), void *user);

f_sort_pointers

void **f_sort_pointers(uint length, void **pointers, boolean (*compare_func)(void *bigger, void *smaller, void *user), void *user);

f_sort_strings

FStringSortResult f_sort_strings(char *a, char *b);

Types:

Enum:

FStringSortResult

F_SSR_A

F_SSR_B

F_SSR_EQUAL

F_SSR_COUNT