From: Meino Christian Cramer Date: 2003-08-12T03:14:35+09:00 Subject: Re: Ruby and OOP-design (question of an old "procedural person" ;) Hi, :) THANK YOU VERY MUCH FOR THE IMMENS RESPONSE TO MY QUESTION! I am very happy to be on this very communicative list :o) ! Since I am at the very very beginning of Ruby-Programming please understand, that I only understand the smallest part of the discussion... In the meantime I git a sorted list of "my" shortwave transmitters. I did: @list.push( [freq, stat, time, days, lang, graf, targ, loca, powr, azim,rema, stau, modu, na, ca, sa, eu, af, me, as, au, pa, cira, coco, coun, long, lati, loco, regi, stn , prst, prog] ) for each input line. Then I did a @list.sort_by { |item| [item[0], item[2] ] } and it works smooth and fast as a ligthning. The above expressions sorts the broadcasters first on frequency then on on-air time. Then I thought of a list first sorted by time and then by frequency and wrote @list.sort_by { |item| [item[2], item[0] ] } and astonishly Ruby quaks ;) with : swlist:62:in `sort_by': comparison of Array with Array failed (ArgumentError) from swlist:62 ("swlist" is the name of my ruby-script) I dont understand that... I am sure that the bug is sitting in front of my monitor...but... What is it what I did so badly wrong ? X) Thank you very much for any help in advance ! Keep being Ruby! Meino