diff --git a/tryton/tryton/gui/window/view_form/view/screen_container.py b/tryton/tryton/gui/window/view_form/view/screen_container.py index 0ca477a43b..9262a1c73f 100644 --- a/tryton/tryton/gui/window/view_form/view/screen_container.py +++ b/tryton/tryton/gui/window/view_form/view/screen_container.py @@ -2,7 +2,6 @@ # this repository contains the full copyright notices and license terms. import datetime import gettext -import operator from gi.repository import Gdk, GLib, GObject, Gtk @@ -629,7 +628,7 @@ class ScreenContainer(object): elif field['type'] in ['selection', 'multiselection']: selections = [x[1] for x in field['selection']] if field.get('sort', True): - selections.sort(key=operator.itemgetter(1)) + selections.sort() entry = Selection(tuple(selections)) entry.set_vexpand(True) elif field['type'] in ('date', 'datetime', 'time'):