Sort and remove duplicates from PC/python3.def (issue #23903).
diff --git a/PC/python3.def b/PC/python3.def
index e687a72..671a501 100644
--- a/PC/python3.def
+++ b/PC/python3.def
@@ -318,6 +318,8 @@
   PyMemoryView_GetContiguous=python37.PyMemoryView_GetContiguous
   PyMemoryView_Type=python37.PyMemoryView_Type DATA
   PyMethodDescr_Type=python37.PyMethodDescr_Type DATA
+  PyModuleDef_Init=python37.PyModuleDef_Init
+  PyModuleDef_Type=python37.PyModuleDef_Type DATA
   PyModule_AddIntConstant=python37.PyModule_AddIntConstant
   PyModule_AddObject=python37.PyModule_AddObject
   PyModule_AddStringConstant=python37.PyModule_AddStringConstant
@@ -330,8 +332,6 @@
   PyModule_GetState=python37.PyModule_GetState
   PyModule_New=python37.PyModule_New
   PyModule_Type=python37.PyModule_Type DATA
-  PyModuleDef_Init=python37.PyModuleDef_Init
-  PyModuleDef_Type=python37.PyModuleDef_Type DATA
   PyNullImporter_Type=python37.PyNullImporter_Type DATA
   PyNumber_Absolute=python37.PyNumber_Absolute
   PyNumber_Add=python37.PyNumber_Add
@@ -368,6 +368,14 @@
   PyNumber_ToBase=python37.PyNumber_ToBase
   PyNumber_TrueDivide=python37.PyNumber_TrueDivide
   PyNumber_Xor=python37.PyNumber_Xor
+  PyODictItems_Type=python37.PyODictItems_Type DATA
+  PyODictIter_Type=python37.PyODictIter_Type DATA
+  PyODictKeys_Type=python37.PyODictKeys_Type DATA
+  PyODictValues_Type=python37.PyODictValues_Type DATA
+  PyODict_DelItem=python37.PyODict_DelItem
+  PyODict_New=python37.PyODict_New
+  PyODict_SetItem=python37.PyODict_SetItem
+  PyODict_Type=python37.PyODict_Type DATA
   PyOS_AfterFork=python37.PyOS_AfterFork
   PyOS_InitInterrupts=python37.PyOS_InitInterrupts
   PyOS_InputHook=python37.PyOS_InputHook DATA
@@ -434,14 +442,6 @@
   PyObject_Size=python37.PyObject_Size
   PyObject_Str=python37.PyObject_Str
   PyObject_Type=python37.PyObject_Type DATA
-  PyODict_DelItem=python37.PyODict_DelItem
-  PyODict_New=python37.PyODict_New
-  PyODict_SetItem=python37.PyODict_SetItem
-  PyODict_Type=python37.PyODict_Type DATA
-  PyODictItems_Type=python37.PyODictItems_Type DATA
-  PyODictIter_Type=python37.PyODictIter_Type DATA
-  PyODictKeys_Type=python37.PyODictKeys_Type DATA
-  PyODictValues_Type=python37.PyODictValues_Type DATA
   PyParser_SimpleParseFileFlags=python37.PyParser_SimpleParseFileFlags
   PyParser_SimpleParseStringFlags=python37.PyParser_SimpleParseStringFlags
   PyProperty_Type=python37.PyProperty_Type DATA
@@ -484,8 +484,8 @@
   PySlice_New=python37.PySlice_New
   PySlice_Type=python37.PySlice_Type DATA
   PySortWrapper_Type=python37.PySortWrapper_Type DATA
-  PyState_FindModule=python37.PyState_FindModule
   PyState_AddModule=python37.PyState_AddModule
+  PyState_FindModule=python37.PyState_FindModule
   PyState_RemoveModule=python37.PyState_RemoveModule
   PyStructSequence_GetItem=python37.PyStructSequence_GetItem
   PyStructSequence_New=python37.PyStructSequence_New
@@ -577,8 +577,10 @@
   PyUnicode_AsUTF8String=python37.PyUnicode_AsUTF8String
   PyUnicode_AsUnicodeEscapeString=python37.PyUnicode_AsUnicodeEscapeString
   PyUnicode_AsWideChar=python37.PyUnicode_AsWideChar
+  PyUnicode_BuildEncodingMap=python37.PyUnicode_BuildEncodingMap
   PyUnicode_ClearFreelist=python37.PyUnicode_ClearFreelist
   PyUnicode_Compare=python37.PyUnicode_Compare
+  PyUnicode_CompareWithASCIIString=python37.PyUnicode_CompareWithASCIIString
   PyUnicode_Concat=python37.PyUnicode_Concat
   PyUnicode_Contains=python37.PyUnicode_Contains
   PyUnicode_Count=python37.PyUnicode_Count
@@ -593,9 +595,12 @@
   PyUnicode_DecodeUTF16Stateful=python37.PyUnicode_DecodeUTF16Stateful
   PyUnicode_DecodeUTF32=python37.PyUnicode_DecodeUTF32
   PyUnicode_DecodeUTF32Stateful=python37.PyUnicode_DecodeUTF32Stateful
+  PyUnicode_DecodeUTF7=python37.PyUnicode_DecodeUTF7
+  PyUnicode_DecodeUTF7Stateful=python37.PyUnicode_DecodeUTF7Stateful
   PyUnicode_DecodeUTF8=python37.PyUnicode_DecodeUTF8
   PyUnicode_DecodeUTF8Stateful=python37.PyUnicode_DecodeUTF8Stateful
   PyUnicode_DecodeUnicodeEscape=python37.PyUnicode_DecodeUnicodeEscape
+  PyUnicode_EncodeFSDefault=python37.PyUnicode_EncodeFSDefault
   PyUnicode_FSConverter=python37.PyUnicode_FSConverter
   PyUnicode_FSDecoder=python37.PyUnicode_FSDecoder
   PyUnicode_Find=python37.PyUnicode_Find
@@ -610,6 +615,9 @@
   PyUnicode_FromWideChar=python37.PyUnicode_FromWideChar
   PyUnicode_GetDefaultEncoding=python37.PyUnicode_GetDefaultEncoding
   PyUnicode_GetSize=python37.PyUnicode_GetSize
+  PyUnicode_InternFromString=python37.PyUnicode_InternFromString
+  PyUnicode_InternImmortal=python37.PyUnicode_InternImmortal
+  PyUnicode_InternInPlace=python37.PyUnicode_InternInPlace
   PyUnicode_IsIdentifier=python37.PyUnicode_IsIdentifier
   PyUnicode_Join=python37.PyUnicode_Join
   PyUnicode_Partition=python37.PyUnicode_Partition
@@ -623,14 +631,6 @@
   PyUnicode_Splitlines=python37.PyUnicode_Splitlines
   PyUnicode_Tailmatch=python37.PyUnicode_Tailmatch
   PyUnicode_Translate=python37.PyUnicode_Translate
-  PyUnicode_BuildEncodingMap=python37.PyUnicode_BuildEncodingMap
-  PyUnicode_CompareWithASCIIString=python37.PyUnicode_CompareWithASCIIString
-  PyUnicode_DecodeUTF7=python37.PyUnicode_DecodeUTF7
-  PyUnicode_DecodeUTF7Stateful=python37.PyUnicode_DecodeUTF7Stateful
-  PyUnicode_EncodeFSDefault=python37.PyUnicode_EncodeFSDefault
-  PyUnicode_InternFromString=python37.PyUnicode_InternFromString
-  PyUnicode_InternImmortal=python37.PyUnicode_InternImmortal
-  PyUnicode_InternInPlace=python37.PyUnicode_InternInPlace
   PyUnicode_Type=python37.PyUnicode_Type DATA
   PyWeakref_GetObject=python37.PyWeakref_GetObject DATA
   PyWeakref_NewProxy=python37.PyWeakref_NewProxy
@@ -676,6 +676,11 @@
   Py_SetRecursionLimit=python37.Py_SetRecursionLimit
   Py_SymtableString=python37.Py_SymtableString
   Py_VaBuildValue=python37.Py_VaBuildValue
+  _PyArg_ParseTupleAndKeywords_SizeT=python37._PyArg_ParseTupleAndKeywords_SizeT
+  _PyArg_ParseTuple_SizeT=python37._PyArg_ParseTuple_SizeT
+  _PyArg_Parse_SizeT=python37._PyArg_Parse_SizeT
+  _PyArg_VaParseTupleAndKeywords_SizeT=python37._PyArg_VaParseTupleAndKeywords_SizeT
+  _PyArg_VaParse_SizeT=python37._PyArg_VaParse_SizeT
   _PyErr_BadInternalCall=python37._PyErr_BadInternalCall
   _PyObject_CallFunction_SizeT=python37._PyObject_CallFunction_SizeT
   _PyObject_CallMethod_SizeT=python37._PyObject_CallMethod_SizeT
@@ -706,9 +711,3 @@
   _Py_SwappedOp=python37._Py_SwappedOp DATA
   _Py_TrueStruct=python37._Py_TrueStruct DATA
   _Py_VaBuildValue_SizeT=python37._Py_VaBuildValue_SizeT
-  _PyArg_Parse_SizeT=python37._PyArg_Parse_SizeT
-  _PyArg_ParseTuple_SizeT=python37._PyArg_ParseTuple_SizeT
-  _PyArg_ParseTupleAndKeywords_SizeT=python37._PyArg_ParseTupleAndKeywords_SizeT
-  _PyArg_VaParse_SizeT=python37._PyArg_VaParse_SizeT
-  _PyArg_VaParseTupleAndKeywords_SizeT=python37._PyArg_VaParseTupleAndKeywords_SizeT
-  _Py_BuildValue_SizeT=python37._Py_BuildValue_SizeT