From: Gavin Sinclair Date: 2004-03-03T20:54:27+09:00 Subject: Re: why are Hashes so unsorted? what's your solution? On Wednesday, March 3, 2004, 4:22:44 PM, Ruby wrote, in part: > I use MySQL databases a lot. Let's say I have a query to find the > top-selling albums in my store: > SELECT sku, artistname, albumtitle, sold FROM albums > ORDER BY sold DESC LIMIT 20; > When I get the hash of results from the database, [...] Surely you get an _array_ of results from the database? [ { "sku" => "sku1", "artistname" => "Miles Davis", ... }, { ... }, ... ] Could you show me the data type you get back? Gavin