export const sortAlphabetical = (key: K) => (a: T, b: T) => a[key].localeCompare(b[key]);