title: Sort an ArrayList based on Integer
body: <p>When i am fetching data into ListView, getting data in a same sequence, but what if i want to sort data based on MemberID, But i want to show recent on top</p>
  
  <pre><code>public class AppointmentsActivity extends Activity {
  
      ...
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          ....
          adapter = new MembersAdapter (MembersActivity.this, R.layout.adapter_members, membersArrayList);
  
          listView.setAdapter(adapter);
  
      }
  
      ........
  }
  </code></pre>