Sort contacts by date before overwriting values