From: nobu.nokada@... Date: 2002-12-22T23:29:19+09:00 Subject: Re: 'C' equivalent for ary.sort! Hi, At Sun, 22 Dec 2002 22:53:35 +0900, Wai-Sun Chia wrote: > I am currently struggling to write the 'C' equivalent of this Ruby snippet: > > ================================================== > @my_hash.each_value { |v| > v.sort! { |a,b| a[1].size <=> b[1].size } > } > ================================================== qsort() > Furthermore, how do I tie in rb_hash_each_value() into rb_iterate()?? It's a static function, you can't use it outside hash.c. -- Nobu Nakada