From: Jack Bauer Date: 2009-05-19T00:02:02+09:00 Subject: Re: Sorting numbers as strings Douglas Seifert wrote: > Maybe something like this: > irb> a.sort_by{|s| n,i = s.split('/'); [n, i.to_i]} Thanks to both of you guys. The one I quoted above looks similar to what I was doing, I just thought it wasn't working because I'm using pagination and it's ordering each page rather than the whole result and then paginating. -- Posted via http://www.ruby-forum.com/.