docs: function getComparator(sortOrder) {
    if (typeof sortOrder === 'function') {
      return sortOrder;
    }
  
    const comparators = {
      [ASC]: ascendingSort,
      [DESC]: descendingSort,
      [ASC_LENGTH]: lengthSort,
      [DESC_LENGTH]: lengthReverseSort
    };
  
    return comparators[sortOrder];
  }