Odd sort of numbers after text import in DataGrid

Alex Tweedly alex at tweedly.net
Tue May 10 19:15:42 EDT 2011


Use "numeric" as the (optional) sorttype in the sort command - see 
dictionary.

For example,

sort lines of field thisField descending numeric by item x of each

-- Alex.

On 11/05/2011 00:07, tbodine wrote:
> Hi,
> Having a bit of trouble sorting score numbers after importing a
> tab-delimited text file. Using dgText for import into a table, sorting the
> score column shows:
> 0
> 9
> 10
> 100
> 11
>
> Is there a way to change certain columns to be sorted as number data instead
> of text?
>
> Thx,
> Tom Bodine
>
>
> --
> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Odd-sort-of-numbers-after-text-import-in-DataGrid-tp3513277p3513277.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>





More information about the use-livecode mailing list