Update sorts.c

Updating callback to work in C w/ header