title: How to sort by two fields in Java?
body: <p>I have array of objects <code>person (int age; String name;)</code>.</p>
  
  <p>How can I sort this array alphabetically by name and then by age?</p>
  
  <p>Which algorithm would you use for this ?</p>