From: Greg Willits Date: 2007-10-25T16:17:37+09:00 Subject: Re: Array of Pairs data structure? OK, nevermind, I think I found enough functionality to get me by. An array of arrays is sortable (an array of hashes is not). And, array.assoc provides a lookup of a specific "pair" y = [['bbb','beta'], ['ggg','gamma'], ['aaa','alpha']] puts y.assoc('ggg') # will return ['ggg', 'gamma] puts y.sort # actually works. Weeee. -- gw -- Posted via http://www.ruby-forum.com/.