// SPDX-License-Identifier: Apache-2.0
export class Comparators {
    constructor() {
        // Utility class
        throw new Error('Cannot instantiate utility class');
    }
    static number = (l, r) => {
        if (l < r) {
            return -1;
        }
        else if (l > r) {
            return 1;
        }
        return 0;
    };
    static configSource = (l, r) => {
        return Comparators.number(l.ordinal, r.ordinal);
    };
}
//# sourceMappingURL=comparators.js.map