export function compareText(left, right) {
    if (left < right) {
        return -1;
    }
    if (left > right) {
        return 1;
    }
    return 0;
}
export function compareEdgeChanges(left, right) {
    return compareText(left.from, right.from)
        || compareText(left.to, right.to)
        || compareText(left.label, right.label);
}
export function comparePropChanges(left, right) {
    return compareText(left.key, right.key);
}
