diff --git a/findbugs/src/java/edu/umd/cs/findbugs/gui/AnalysisRun.java b/findbugs/src/java/edu/umd/cs/findbugs/gui/AnalysisRun.java
index <HASH>..<HASH> 100644
--- a/findbugs/src/java/edu/umd/cs/findbugs/gui/AnalysisRun.java
+++ b/findbugs/src/java/edu/umd/cs/findbugs/gui/AnalysisRun.java
@@ -36,6 +36,7 @@ public class AnalysisRun {
     private Reporter reporter;
     private int runNumber;
     private DefaultTreeModel treeModel;
+    private String sortOrder;
     
     /** Creates a new instance of AnalysisRun. */
     public AnalysisRun(Project project) {
@@ -43,6 +44,7 @@ public class AnalysisRun {
         reporter = new Reporter();
         findBugs = new FindBugs(reporter);
 	runNumber = project.getNextAnalysisRun();
+        sortOrder = "invalid";
     }
     
     /**
@@ -85,6 +87,20 @@ public class AnalysisRun {
         return treeModel;
     }
     
+    /**
+     * Set current sort order of the run's tree model.
+     */
+    public void setSortOrder(String sortOrder) {
+        this.sortOrder = sortOrder;
+    }
+    
+    /**
+     * Get current sort order of the run's tree model.
+     */
+    public String getSortOrder() {
+        return sortOrder;
+    }
+    
     public String toString() {
 	return "Run " + runNumber;
     }
Added support for keeping track of the current sort order of the
run's tree model.


git-svn-id: <URL>