Implement vault.data/total-order comparator.