title: Order objects in toString based on objects parameter value
body: <p>I have this toString method set up </p>
  
  <pre><code>public String toString (){
      String result;
      result = "Ideal Family";
      result += "\n"+person1.toString();
      result += "\n"+person2.toString();
      result += "\n"+person3.toString();
      result += "\n"+person4.toString();
      result += "\n"+pet1.toString();
      result += "\n"+car1.toString();
      result += "\n"+car2.toString();
      result += "\n"+homeAddress.toString();
      return result;
  }
  </code></pre>
  
  <p>in which I list objects in the order I wish to output them. Is there a way to re-order the list based on values within the objects.
  Specefically in the Person Class, to re-order the person objects based on an instance variable, an int.</p>
  
  <p>The Person class takes these parameters</p>
  
  <pre><code>public Person (String personName,String personGender,String personSS,int personAge){
      name = personName;
      ss = personSS;
      age = personAge;
      gender = personGender;
  }
  </code></pre>