function sortByNameDescending(patients) {
  return patients
    .sort((a, b) => {
      return b.first_name.localeCompare(a.first_name);
    })
    .sort((a, b) => {
      return b.last_name.localeCompare(a.last_name);
    });
}
/** sorts array of patients reverse alphabetically by last name, then by first name  */
sorts array of patients reverse alphabetically by last name, then by first name
sorts array of patients reverse alphabetically by last name then by first name
function sortByNameDescending(patients) {
  return patients
    .sort((a, b) => {
      return b.first_name.localeCompare(a.first_name);
    })
    .sort((a, b) => {
      return b.last_name.localeCompare(a.last_name);
    });
}
function sortByNameDescending ( patients ) { return patients . sort ( ( a , b ) => { return b . first_name . localeCompare ( a . first_name ) ; } ) . sort ( ( a , b ) => { return b . last_name . localeCompare ( a . last_name ) ; } ) ; }
sorts array of patients reverse alphabetically by last name, then by first name
sorts array of patients reverse alphabetically by last name then by first name