Sorting an ArrayList of Contacts
- by Sameera0
Ok so I have a been making an addressbook application and have pretty much finished all the key features but I am looking to implement a sort feature in the program.
I want to sort an Arraylist which is of a type called Contact (contactArray) which is a separate class which contains four fields; name, home number, mobile number and address.
So I was looking into using the collection sort yet am not sure how i'd implement this.
Is this the right sort I should be using / is it possible to use or should I look into making a custom sort?