function getCompareFunctionFactory(type) {
  if (hasGloballyCompareFunctionFactory(type)) {
    return getGloballyCompareFunctionFactory(type);
  }

  return getGloballyCompareFunctionFactory(_default.COLUMN_DATA_TYPE);
}
Gets sort function for the particular column basing on it's data type.

@param {String} dataType Data type for the particular column.
@returns {Function}