changed the way of sorting address book