title: android how to collections.sort the object?
body: <p>Now I have 3object</p>
  <pre><code>user[0] = new user(&quot;a&quot;, &quot;a&quot;);
  user[1] = new user(&quot;b&quot;, &quot;b&quot;);
  user[2] = new user(&quot;c&quot;, &quot;c&quot;);
  </code></pre>
  <p>there have many variable in the object such as:
  age, name, email</p>
  <p>then the program is running.....</p>
  <pre><code>user[0].setAge(6);
  user[1].setAge(5);
  user[2].setAge(7);
  </code></pre>
  <p>how can I get the young to old user name?</p>
  <p>the exception return:
  b,a,c</p>