Use a list of selection values to enable sorting in the filter window

Closes #14785
This commit is contained in:
Nicolas Évrard
2026-04-20 10:41:45 +02:00
parent de1bb5d5d9
commit 072d0317aa
@@ -627,10 +627,10 @@ class ScreenContainer(object):
for selection in selections:
entry.append_text(selection)
elif field['type'] in ['selection', 'multiselection']:
selections = tuple(x[1] for x in field['selection'])
selections = [x[1] for x in field['selection']]
if field.get('sort', True):
selections.sort(key=operator.itemgetter(1))
entry = Selection(selections)
entry = Selection(tuple(selections))
entry.set_vexpand(True)
elif field['type'] in ('date', 'datetime', 'time'):
date_format = common.date_format(