--- a/src/eric7/CodeFormatting/BlackConfigurationDialog.py Tue Sep 20 11:28:20 2022 +0200 +++ b/src/eric7/CodeFormatting/BlackConfigurationDialog.py Tue Sep 20 11:40:04 2022 +0200 @@ -109,7 +109,7 @@ for t in dir(black.TargetVersion) if t.startswith("PY") ] - for target in sorted(targets): + for target in sorted(targets, reverse=True): itm = QListWidgetItem( "Python {0}.{1}".format(target[0], target[1]), self.targetVersionsList )