4 messages in com.googlegroups.google-base-data-apiRe: Query via .NET Client Library - S...
FromSent OnAttachments
Justin08 Jan 2007 14:22 
Stephane Zermatten09 Jan 2007 02:23 
Justin McCuistion09 Jan 2007 10:10 
Justin10 Jan 2007 09:24 
Subject:Re: Query via .NET Client Library - SortOrder / OrderBy ??
From:Justin McCuistion (just@gmail.com)
Date:01/09/2007 10:10:38 AM
List:com.googlegroups.google-base-data-api

Thank you! I was unable to understand the usage of ExtraParameters from the documentation, however I suspected it could be used this way. I am still at a loss to know how to order by PRICE.

Can I get an example of how I would order by PRICE ?

I have tried: query.ExtraParameters = "orderby=price&sortorder=ascending"; query.ExtraParameters = "orderby=" + HttpUtility.UrlEncode("[x=price]") + "&sortorder=ascending"; query.ExtraParameters = "orderby=" + HttpUtility.UrlEncode("[x=price(float)]") + "&sortorder=ascending"; query.ExtraParameters = "orderby=" + HttpUtility.UrlEncode("[x=price(floatUnit]") + "&sortorder=ascending"; query.ExtraParameters = "orderby=" + HttpUtility.UrlEncode("[x=price(float) : max(x)]") + "&sortorder=ascending"; query.ExtraParameters = "orderby=" + HttpUtility.UrlEncode ("[x=price(int) : max(x)]") + "&sortorder=ascending";

I am trying to copy the pattern from the documentation here: http://code.google.com/apis/base/ranking-lang-spec.html

...but no such luck. I some cases the results are not returned in the correct order and in others and error is thrown.