Re: Forcing order

2006-03-10 Thread Ron Smith
--- Chris Devers <[EMAIL PROTECTED]> wrote: > On Thu, 9 Mar 2006, Ron Smith wrote: > > > How can I assure printing the correct order? > > You can't guarantee the order of keys in a hash per > se. For efficiency > and optimization, hashes are stored in a random > order, unlike arrays, > which d

Re: Forcing order

2006-03-09 Thread Chris Devers
On Thu, 9 Mar 2006, Ron Smith wrote: > How can I assure printing the correct order? You can't guarantee the order of keys in a hash per se. For efficiency and optimization, hashes are stored in a random order, unlike arrays, which do have a straightforward order. The trick then is to sort the