sorting

Frank Ch. Eigler fche@redhat.com
Wed Dec 14 17:08:00 GMT 2005


Hi -

weikong wrote:

> Some time what I want to sort is not the value, but some key. 
> How? can?  

Yes.  As the man page points out, you can put the "+" or "-" sorting
directive on an index in the foreach loop:

          foreach ([a,b-] in arr) { }

Then the iteration will be in decreasing order of the second key.

- FChE



More information about the Systemtap mailing list