Merge pull request #1379 from SiboVG/caseInsensSort

Sort preset dialog by manufacturer by default
This commit is contained in:
SiboVG 2022-05-26 01:33:49 +02:00 committed by GitHub
commit 9f8354c68a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,6 +154,7 @@ public class ComponentPresetTable extends JTable {
this.setModel(tableModel);
this.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
this.setRowSorter(sorter);
sorter.toggleSortOrder(2); // Sort by the first column (manufacturer) by default
for ( TableColumn hiddenColumn : hiddenColumns ) {
tableColumnModel.setColumnVisible(hiddenColumn, false);