Ruby on Rails Discussions
sorting the children of an object
rubyonrails-talk
sohrauer
(sohrauer@googlemail.com)
December 13, 2007, 2:52pm
1
Something like: elements.sort{ |x,y| x.position <=> y.position }
Related topics
Topic
Replies
Views
Activity
sorting the children of an object
rubyonrails-talk
2
228
December 14, 2007
sorting problem
rubyonrails-talk
0
81
February 22, 2007
An acts_as_sortable replacement built for Rails 3
rubyonrails-talk
1
170
February 8, 2011
Sorting different objects
rubyonrails-talk
2
100
September 14, 2007
sorting problem
rubyonrails-talk
0
81
February 22, 2007