Datagrids have this feature, so yes, I would expect there to be some way to 
specify what kind of sort you want to do. But it would have to be on a per 
column basis. 

But if you are sorting the text yourself, you can use the syntax: sort lines of 
tText by item n of each.

I don't think any assumptions should be made by the engine as to what kind of 
data each column contains. I worked with an accounting system many years ago 
which had numeric invoice numbers, or so it seemed. Once you created a credit 
memo, it prepended R to the invoice number. 

Bob S


> On Aug 15, 2022, at 16:25 , Alex Tweedly via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> So it occurred to me, while playing with sorting by columns, that it might be 
> nice to have an additional "sortType" available.
> 
> I'd like to be able to say
> 
>  - if all the 'things' being sorted on are numbers, then sort numeric, 
> otherwise sort alphabetical.
> 
> Would that be a reasonable enhancement request ?
> 
> Would "natural" be a reasonable suggested name ?
> 
> Alex.
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to