const defaultSortNumberFn = (a, b) => {
    return Number(a) - Number(b);
};
const defaultSortTextFn = (a, b) => {
    return a.localeCompare(b);
};
export const defaultSortFns = (columnType) => {
    switch (columnType) {
        case 'number':
            return defaultSortNumberFn;
        case 'boolean':
        case 'text':
        default:
            return defaultSortTextFn;
    }
};
//# sourceMappingURL=default-sort-fns.js.map