Just add a numeric column to the table and copy the strings values by row. Then sort on that column.
On Nov 27, 5:41 pm, kukacz <[email protected]> wrote: > Hi, > I need to sort a datatable, where first column is of a string type. It > has to be a string since I'm creating a chart, where the first > column's data form a x-axis series. The problem is the actual data of > that column have numeric meaning. > > Still however, I wish to be able to resort the table dynamically while > keeping the correct numeric order of rows, not a string order. Is > there some way how to do this? > > Just to illustrate the unwanted behaviour, following column: > 512 > 1024 > 4096 > > is being incorrectly resorted by string algorithm to: > 1024 > 4097 > 512 > > Thank you. > > kukacz -- 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.
