Change the compare function error in ListSort to be more user friendly and indicate the likely cause of the error.