From: Mike Dershowitz Date: 2007-06-13T22:39:51+09:00 Subject: sorting arrays within an array by the first object in... Hello: Here's a bit of a tongue-twister: I have a parent array of child arrays. Each child array contains a set of objects. These objects are all from the same model. I know that each child array contains at least one object. I want to sort on a field in the first object in each child array, and arrange the child arrays in the parent array according to that field in the first object in the child arrays. What's the best way to do this? I thought it was some permutation of sort_by, but I tried a few options and didn't have any luck. I wanted to take a step back and check in with the community to see if I could get some direction. Thanks very much in advance. Mike -- Posted via http://www.ruby-forum.com/.