From d17a655b7c909138f4281df39511320a9899cc38 Mon Sep 17 00:00:00 2001 From: Steven Weaver Date: Wed, 24 Jan 2018 15:11:27 -0500 Subject: [PATCH] Fixes #738 (#741) * Sorts branch selection menu elements. --- .../SelectionAnalyses/modules/io_functions.ibf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/res/TemplateBatchFiles/SelectionAnalyses/modules/io_functions.ibf b/res/TemplateBatchFiles/SelectionAnalyses/modules/io_functions.ibf index a34d457bf..0a90116c4 100644 --- a/res/TemplateBatchFiles/SelectionAnalyses/modules/io_functions.ibf +++ b/res/TemplateBatchFiles/SelectionAnalyses/modules/io_functions.ibf @@ -19,8 +19,7 @@ lfunction selection.io.defineBranchSets(partition_info) { if (Abs (partition_info) == 1) { // allow more refined selections if there is only one tree tree_for_analysis = (partition_info[0])[utility.getGlobalValue("terms.data.tree")]; utility.ForEach (tree_for_analysis[utility.getGlobalValue("terms.trees.model_map")], "_value_", "`&available_models`[_value_] += 1"); - list_models = utility.Keys (available_models); // get keys - branch_counts = utility.Values (available_models); + list_models = utility.sortStrings(utility.Keys (available_models)); // get keys option_count = Abs (available_models); } else { option_count = 0;