export default function groupNamesSorter(getName?: (val: T) => string): (a: any, b: any) => 1 | 0 | -1;