improve Contact.java sort method