createComparator = (property, comparator) => (a, b) =>
	comparator(
		a[/** @type {keyof T} */ (property)],
		b[/** @type {keyof T} */ (property)]
	)
@template T
@param {string} property property
@param {function(T[keyof T], T[keyof T]): 0 | 1 | -1} comparator comparator
@returns {Comparator<T>} comparator