Skip to content

Commit

Permalink
Output keys in sorted order
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Apr 26, 2016
1 parent 39abc94 commit 5dd8d5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Compiler/Util/BaseAvlTree.mo
Expand Up @@ -223,9 +223,9 @@ algorithm

case NODE(key=key, value=value)
algorithm
lst := (key, value) :: lst; // TODO: Move me to middle
lst := toList(inTree.left, lst);
lst := toList(inTree.right, lst);
lst := (key, value) :: lst;
lst := toList(inTree.left, lst);
then lst;

case LEAF(key=key, value=value)
Expand All @@ -247,9 +247,9 @@ algorithm

case NODE(value = value)
algorithm
lst := value :: lst; // TODO: Move me to middle
lst := listValues(tree.left, lst);
lst := listValues(tree.right, lst);
lst := value :: lst;
lst := listValues(tree.left, lst);
then lst;

case LEAF(value = value) then value :: lst;
Expand Down

0 comments on commit 5dd8d5a

Please sign in to comment.