sort contacts and store them on the phone