packages/typescript-to-proptypes/src/generator.ts/defaultSortLiteralUnions
function defaultSortLiteralUnions(a: t.LiteralType, b: t.LiteralType) {
  const { value: valueA } = a;
  const { value: valueB } = b;
  // numbers ascending
  if (typeof valueA === 'number' && typeof valueB === 'number') {
    return valueA - valueB;
  }
  // numbers last
  if (typeof valueA === 'number') {
    return 1;
  }
  if (typeof valueB === 'number') {
    return -1;
  }
  // sort anything else by their stringified value
  return String(valueA).localeCompare(String(valueB));
}