M
Max Williams
IN sql we can pass two arguments to the 'order by' component, and it
will order the results by A, and then B in the cases where A is the
same.
Can anyone think of a way to do the same thing with a ruby array? For
example, if the array holds objects that have attributes/methods
"lastname" & "firstname", to order the objects in a similar way to the
sql query?
thanks
max
will order the results by A, and then B in the cases where A is the
same.
Can anyone think of a way to do the same thing with a ruby array? For
example, if the array holds objects that have attributes/methods
"lastname" & "firstname", to order the objects in a similar way to the
sql query?
thanks
max