[libcommhistory] Adapt to changes in libcontacts for sort/display order