Merge "Change frequents algorithm to return contacts in a different order" into klp-dev