From: Gavin Sinclair Date: 2003-01-03T12:04:31+09:00 Subject: Re: sort the hash keys On Friday, January 3, 2003, 1:52:24 PM, TOTO wrote: > How can I sort the keys of a Hash so that they can be outputed > according to the keys sorted order? A Hash is explicitly a non-sorted data structure. If you just want the keys in sorted order, use: hash.keys.sort Look at other methods in Hash (e.g. sort) for more info. Gavin