It appears that the code you show below will work, according to the
API documentation.

http://code.google.com/apis/visualization/documentation/reference.html

If the datatable is coming from a Query statement, then you could sort
the return dataset during the query operation.

On Dec 1, 8:45 am, Gerard Flanagan <[email protected]> wrote:
> Rune V. Sjoen wrote:
> > Is there any way to control the direction of sort when executing
> > datatable.sort(columnindex) ? Whenever I do this the table is sorted
> > on the correct column index but it is sorted ascending. I would like
> > to sort it descending.
>
> > I could simply invert it after sorting but that seems very ugly.
>
> eg.
>
>             dt = new google.visualization.DataTable(mydata, 0.6);
>             dt.sort({column: 1, desc: true});

--

You received this message because you are subscribed to the Google Groups 
"Google Visualization 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-visualization-api?hl=en.


Reply via email to