Changes for variablemodificatin
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / view / bookmark / GroupNode.java
index 1064faa..974dcd7 100644 (file)
@@ -5,6 +5,7 @@
 package com.quantum.view.bookmark;
 
 import java.sql.SQLException;
+import java.util.Collections;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
@@ -71,7 +72,8 @@ public class GroupNode extends TreeNode implements Comparable, SchemaHolder {
                     this.children.add(entityNode);
                 }
             }
-            if (changed && !firstTimeInitialization) {
+            Collections.sort(this.children);
+            if ((temp.size() > 0 || changed ) && !firstTimeInitialization) {
                 firePropertyChange("children", null, null);
             }
         } catch (SQLException e) {