commitmentComparatorfunction commitmentComparator(a, b): -1 | 0 | 1; Parameters ParameterTypeaCommitmentbCommitment Returns -1 | 0 | 1