recovery: fixed diff's handling of timestamps
recovery: check that containers are sorted before diff