Skip to content

Commit

Permalink
Sort suffixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelzwiers committed May 14, 2024
1 parent f689f0a commit 16117af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bidscoin/bidseditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,7 @@ def fill_table(self, table: QTableWidget, data: list):
if table.objectName()=='bids' and key=='suffix' and self.target_datatype in self.bidsdatatypes:
table.setItem(i, 0, MyWidgetItem('suffix', iseditable=False))
suffix = self.datasource.dynamicvalue(self.target_run['bids'].get('suffix',''))
suffixes = sorted(self.allowed_suffixes.get(self.target_datatype, ['']))
suffixes = sorted(self.allowed_suffixes.get(self.target_datatype, ['']), key=str.casefold)
suffix_dropdown = self.suffix_dropdown = QComboBox()
suffix_dropdown.addItems(suffixes)
suffix_dropdown.setCurrentIndex(suffix_dropdown.findText(suffix))
Expand Down

0 comments on commit 16117af

Please sign in to comment.