Correct sort error