Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Where in & keeping the order
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Roch Delsalle  
View profile  
 More options May 1 2012, 1:01 pm
From: Roch Delsalle <rdelsa...@gmail.com>
Date: Tue, 1 May 2012 18:01:37 +0100
Local: Tues, May 1 2012 1:01 pm
Subject: Where in & keeping the order

Hi,

I would like to know if it's possible to do the same request and keep the
results ordered like in my list ?

*Contact where(_.id in sorted.take(10).map(_._1)) fetch()*

Thanks,

Roch


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Liszka  
View profile  
 More options May 1 2012, 1:04 pm
From: Jason Liszka <jlis...@foursquare.com>
Date: Tue, 1 May 2012 13:04:52 -0400
Local: Tues, May 1 2012 1:04 pm
Subject: Re: Where in & keeping the order

This isn't something mongo supports. Mongo will return results sorted in
natural (disk) order unless you specify a field to sort on. So you'll have
to do what you want in code.

Jason


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roch Delsalle  
View profile  
 More options May 1 2012, 1:07 pm
From: Roch Delsalle <rdelsa...@gmail.com>
Date: Tue, 1 May 2012 18:07:01 +0100
Local: Tues, May 1 2012 1:07 pm
Subject: Re: Where in & keeping the order

Hi Jason,

Thank you for your quick answer,

Roch

2012/5/1 Jason Liszka <jlis...@foursquare.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »