I think I'll have to write my own function as well. kind of put this
on the back burner for now and will come back to it once I've finished
coding the rest of the app.
Thanks for the reply.

On Sep 28, 10:43 am, "euromark (munich)" <[email protected]>
wrote:
> i ended up writing some highly complicated function for it myself
> not only for your problem, but for "correct" neighbors in general
>
> if you use UUIDs you dont have sorted IDs anyway
> and sometimes you have to sort by more than just 1 field etc..
>
> On 25 Sep., 17:27, mklappen <[email protected]> wrote:
>
> > Hi
>
> > Is there a way I can sort a query and then have the find (neighbors)
> > based on that sort?
>
> > I'm trying to sort my results by title and then would like prev/next
> > elements returned by neighbors to be the prev/next title in alpha
> > order. However, neighbors is returing the prev/next ids which are not
> > in alpha order.
>
> > $this->Game->find('neighbors',array
> > ('fields'=>'Game.title','order'=>'Game.title ASC'));
>
> > Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to