From: "Ismail M." Date: 2012-11-29T00:36:00+09:00 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. -- Posted via http://www.ruby-forum.com/.