strncmp for book sorting