I've been trying to retrieve a bunch of records based on an array of
ids, say [946, 157, 688, 947, 948, 949], but I  need the results in
the original order of the ids, so record 946, then 157, etc.

I've trawled though the docs and source code and I know I can do
something like Foo.all :id => [946, 157, 688, 947, 948, 949] to get a
bunch of docs by id, but that doesn't seem to preserve the order. I
assume it defaults to sorting by primary key instead.

Is there some way to do this directly with DataMapper, or should I
just try and sort them after the query?

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to