summaryrefslogtreecommitdiffstats
path: root/elaborate.cxx
diff options
context:
space:
mode:
authorJim Keniston <jkenisto@us.ibm.com>2008-10-03 14:11:41 -0700
committerJim Keniston <jkenisto@us.ibm.com>2008-10-03 14:11:41 -0700
commitb678f438a390da7f9a6712a22c95d069dfd6643b (patch)
tree2bf12daf34f2f534af8add9c3aa93afd1abdf38b /elaborate.cxx
parentde50692ab43992557f4e0b719e09c0a88127a603 (diff)
parent748eea887135ac44f5c4b0a7499225d4cb2cbefe (diff)
downloadsystemtap-steved-b678f438a390da7f9a6712a22c95d069dfd6643b.tar.gz
systemtap-steved-b678f438a390da7f9a6712a22c95d069dfd6643b.tar.xz
systemtap-steved-b678f438a390da7f9a6712a22c95d069dfd6643b.zip
Merge branch 'master' of ssh://kenistoj@sources.redhat.com/git/systemtap
Diffstat (limited to 'elaborate.cxx')
-rw-r--r--elaborate.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/elaborate.cxx b/elaborate.cxx
index 94bfd1c5..afdc796e 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -1234,7 +1234,8 @@ void add_global_var_display (systemtap_session& s)
vardecl* idx_v[idx_count];
// Create a foreach loop
foreach_loop* fe = new foreach_loop;
- fe->sort_direction = 0;
+ fe->sort_direction = -1; // imply decreasing sort on value
+ fe->sort_column = 0; // as in foreach ([a,b,c] in array-) { }
fe->limit = NULL;
// Create indices for the foreach loop