correct sort.c