From: Logan Capaldo Date: 2007-03-01T05:36:06+09:00 Subject: Re: Sorting a Hash ------=_Part_21497_2176617.1172694963915 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 2/28/07, Nasir Khan wrote: > > > I can maintain a parallel array of sorted keys but it is kind of kludgy. > Can I sort the hash "in place" such that the Hash#keys and Hash#values > return sorted results, without me having to maintain this array of arrays > separately? The short answer is "No". :) There's a bunch of SortedHashes floating out there on the net though, so you don't have to write it yourself. TIA > ------=_Part_21497_2176617.1172694963915--