Add code to catch errors from incorrectly entered names (during sorting process).