From: Wayne Brisette Date: 2012-11-29T00:40:54+09:00 Subject: Re: sorting data from a file Read the blog entry I sent earlier. It will all make sense once you read it (you're going to want to store things into two different "fields" or objects stored in an array)... or start thinking about hashes. Wayne ----- Original Message ---- From: Ismail M. To: ruby-talk ML Sent: Wed, November 28, 2012 9:36:56 AM Subject: Re: sorting data from a file of course I see your point Jan E. I opened/read the file and displayed in on ruby command promt. then i thought of a way to sort the data in the file. l = [1,2,3,3,1,6,5] smallest = l.sort.first 4 => [1,1,2,3] however applying this method in my case is the problem. How do i connect this method to my file then make a loop than sort each line in my file.