}
}
@Override
public void store(KongaTable table) {
KongaPreferences prefs = getPreferences();
RowSorter<? extends TableModel> sorter = table.getRowSorter();
List<? extends SortKey> keys = sorter.getSortKeys();
int index = -1;
SortOrder order = SortOrder.ASCENDING;
if (!keys.isEmpty()) {
SortKey key = keys.get(0);
index = key.getColumn();
order = key.getSortOrder();
}
prefs.putInt (INDEX, index);
prefs.putEnum(ORDER, order);
}