Hi,

In my project, I did like this:

                String ORDER_BY = "[x=price(float USD) : if exists(x) then 
max(x)
else fail()]";
                query.setOrderBy(ORDER_BY);

In URL form : &orderby=%5Bx%3Dprice%28float+USD%29+%3A+if+exists%28x
%29+then+max%28x%29+else+fail%28%29%5D

It works well.

Thanks,
SNM


On Mar 20, 12:34 pm, pmdpmd <[email protected]> wrote:
> Hi,
>
> I would like to sort my results by price and found the following
> syntax for a URL from a previous post:
>
> http://www.google.com/base/feeds/snippets?bq=[item+type:housing]&orderby=price(float+USD)
>
> However when I try to reproduce this in code by setting:
>
> query.OrderBy = "price(float+USD)";
>
> This does not work.
>
> Can anyone advise what value I need to assign to the .OrderBy
> property?
>
> Thanks,
> Paul.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Base Data API" 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/Google-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to