Re: Sorting numeric strings
On 4/30/2012 9:27 PM, Ben wrote:
> Given the following data:
> Col1, Col2, Col3
> 438.23, 991897664, ccc
> 22.12, 991897631, bbb
> 100.99, 881897631, aaa
> 50.12, 991884803, ddd
> The class below will sort the data based on the column specified, except
> Col1, which contains float values. If you set the SortCol variable below
> to 0, sorting does not work. If you set it to 1 or 2, sorting does work.
> How can I sort Col1 which is a column of numeric strings?
I only works with Col2 because the strings has same length.
If you need to sort after numerical value, then you need
to convert values to numbers.
|All times are GMT. The time now is 11:50 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.