final public void doSortTrackByAttribute() {
List<String> keys = AttributeManager.getInstance().getAttributeNames();
Object availableSortKeys[] = keys.toArray();
SortDialog dialog = new SortDialog(mainFrame.getMainFrame(), true, availableSortKeys);
dialog.setVisible(true);
if (dialog.isCanceled()) {
return;
}
String[] selectedSortKeys = dialog.getSelectedSortKeys();
if (selectedSortKeys != null) {
IGV.getInstance().sortAllTracksByAttributes(selectedSortKeys, dialog.isAscending());
mainFrame.getMainFrame().repaint();
}
}