Removed reduntant return value of sort_names function.