Colin Law wrote in post #1033691:
> On 25 November 2011 11:32, angel david <lists@ruby-forum.com> wrote:
>> So i want to sort all posts based on publish_on date in the following
>>
>> Post to be published on 12th November
>>
>> Post to be published on 13th November
>>
>> Post to be published on 9th November
>>
>> Post to be published on 8th November
>
> You could do that using two separate find operations and then
> concatenating them, or you could use sort with a block and put the
> logic in the block. I expect someone will point out a better way.
>
> Colin
Hi Colin,
Thanks for your reply.
I did it as you said.. Got two different find operations and
concatenated them..
Once again thanks for your support
Angel
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment