import { getRootComparator } from './registry.mjs';
export const DO_NOT_SWAP = 0;
export const FIRST_BEFORE_SECOND = -1;
export const FIRST_AFTER_SECOND = 1;
/**
 * @param {Array} indexesWithData The data to sort.
 * @param {string} rootComparatorId The comparator logic to use.
 * @param {Array} argsForRootComparator Additional arguments for comparator function.
 */ export function sort(indexesWithData, rootComparatorId, ...argsForRootComparator) {
    const rootComparator = getRootComparator(rootComparatorId);
    indexesWithData.sort(rootComparator(...argsForRootComparator));
}
