From 7c0a25e878696337deb40f4bef8b22308e144918 Mon Sep 17 00:00:00 2001 From: "Gregory.Shrago" Date: Thu, 15 Dec 2011 17:28:53 +0300 Subject: [PATCH] EA-32614 - CCE: TableRowSorter$ComparableComparator.compare & IDEA-78923 IntelliLang: ClassCastException at TableRowSorter$ComparableComparator.compare() on opening Settings --- platform/platform-api/src/com/intellij/ui/table/TableView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-api/src/com/intellij/ui/table/TableView.java b/platform/platform-api/src/com/intellij/ui/table/TableView.java index 9995209c32cd..f329dd3bd866 100644 --- a/platform/platform-api/src/com/intellij/ui/table/TableView.java +++ b/platform/platform-api/src/com/intellij/ui/table/TableView.java @@ -86,7 +86,7 @@ public class TableView extends BaseTableView implements ItemsProvider, Sel final TableColumn column = getColumnModel().getColumn(i); // hack to get sort arrow included into the renderer component if (sorter != null && columnInfo.isSortable()) { - sorter.setSortKeys(Collections.singletonList(new RowSorter.SortKey(0, SortOrder.ASCENDING))); + sorter.setSortKeys(Collections.singletonList(new RowSorter.SortKey(i, SortOrder.ASCENDING))); } final Component headerComponent = defaultRenderer == null? null :