title: Sort an array of objects alphabetically
body: <p>I have an array of objects and each objects has a given name and a surname.
  These names are written to the object using methods getGivenName and getSurname.</p>
  
  <p>I need to sort the elements in the array in alphabetical order by surname.
  how can I do this?</p>