Write a function to sort a list of patient records by last name.
Implement sort_patient_records(records), where records is a list of dictionaries containing patient_id, first_name, and last_name. Return a new list ordered lexicographically by last_name; records with identical last names must retain their original relative order. Do not modify the input list.
patient_id, first_name, and last_namelast_name is a non-empty stringdef sort_patient_records(records):