Use list.sort's keyword parameters
[joel/kofoto.git] / src / packages / kofoto / gkofoto / objectcollectionview.py
index ea21fdc..229254d 100644 (file)
@@ -361,8 +361,7 @@ class ObjectCollectionView:
                                        gtk.SORT_DESCENDING)
             menuGroup.addSeparator()
             objectMetadataMap = objectCollection.getObjectMetadataMap()
-            columnNames = list(objectMetadataMap.keys())
-            columnNames.sort()
+            columnNames = sorted(objectMetadataMap)
             for columnName in columnNames:
                 if objectMetadataMap[columnName][ObjectCollection.TYPE] != gtk.gdk.Pixbuf:
                     menuGroup.addRadioMenuItem(columnName,