diff --git a/bidscoin/bidseditor.py b/bidscoin/bidseditor.py index ea487406..6d560e14 100755 --- a/bidscoin/bidseditor.py +++ b/bidscoin/bidseditor.py @@ -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))