summaryrefslogtreecommitdiffstats
path: root/elaborate.cxx
diff options
context:
space:
mode:
authorddomingo <ddomingo@redhat.com>2008-10-02 23:26:24 +1000
committerddomingo <ddomingo@redhat.com>2008-10-02 23:26:24 +1000
commit06af1f31b5cf2eacfee45d780d59059f56270a55 (patch)
tree0ca2c98fbd1f094553e9eefc6cf1ab7a75a1eb18 /elaborate.cxx
parent4125a78ae5fc99abb8606bf0eda2a08b3e2d300c (diff)
parentcaf566cb319004a314b09ea6fd6781941db89f8e (diff)
downloadsystemtap-steved-06af1f31b5cf2eacfee45d780d59059f56270a55.tar.gz
systemtap-steved-06af1f31b5cf2eacfee45d780d59059f56270a55.tar.xz
systemtap-steved-06af1f31b5cf2eacfee45d780d59059f56270a55.zip
Merge branch 'master' of ssh://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