GEN_SORT: Created example with a C function.