Thursday, January 11, 2007

sorting things out

does anyone know how to sort an array of objects in ruby. say i have an object that consists of a name, type, and location and i want to group the elements by their type then location and then name. either this is kinda hard or my getting weak in my googling skills... i might post this post in google groups.

right now i'm hacking out a solution, but it won't be as sweat rubyesk solution =(. actually it is kinda dirty, hehe.

No comments: