fix to match the latest JSX strict sort type checking