[Title] fix sorter
authorjooyoul_lee <jy.exe.lee@samsung.com>
Wed, 6 Nov 2013 08:41:05 +0000 (17:41 +0900)
committerjooyoul_lee <jy.exe.lee@samsung.com>
Wed, 6 Nov 2013 08:41:05 +0000 (17:41 +0900)
[Desc.]
[Issue]

org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/table/DefaultTableComparator.java

index 3d8bacb..dbf7c90 100644 (file)
@@ -36,6 +36,7 @@ public class DefaultTableComparator implements Comparator<Object> {
 
        protected int type = AnalyzerConstants.SORT_TYPE_GRID;
        protected int column = 0;
+       protected int oldColumn = 0;
        protected boolean dirUp = true;
 
        public void setType(int type) {
@@ -51,7 +52,10 @@ public class DefaultTableComparator implements Comparator<Object> {
        }
 
        public void reverseDirection() {
-               this.dirUp = !dirUp;
+               if (column == oldColumn) {
+                       this.dirUp = !dirUp;
+               }
+               oldColumn = column;
        }
 
        @Override