I know is not your code, but we should probably use `localeCompare` here