import { SortDirectionNumber } from '../enums/sortDirectionNumber.enum';
export const booleanSortComparer = (value1, value2, sortDirection = SortDirectionNumber.neutral) => {
    let position = 0;
    if (value1 === value2) {
        position = 0;
    }
    else if (value1 === null) {
        position = -1;
    }
    else if (value2 === null) {
        position = 1;
    }
    else {
        if (sortDirection) {
            position = value1 < value2 ? -1 : 1;
        }
        else {
            position = value1 < value2 ? 1 : -1;
        }
    }
    return sortDirection * position;
};
//# sourceMappingURL=booleanSortComparer.js.map