sorting with number late in name

Tore Nilsen tore.nilsen at me.com
Wed Dec 6 18:32:56 EST 2017


You could always try to set the itemDelimiter to _ and then sort the lines numeric by last item of each.

Tore Nilsen

> 7. des. 2017 kl. 00:29 skrev Dr. Hawkins via use-livecode <use-livecode at lists.runrev.com>:
> 
> Now that I've hit ten numbered items, I'm having an issue with
> maintenance routines.
> 
> If I have the items
> 
>  p13_1.07
>  p13_1.08
>  p13_2.04
>  p13_10.01
> 
> I want them to sort in that order.  However, the 10 will sort between
> the 1s and 2s.
> 
> Is there a "decent" way to do this without a custom function?
> 
> All I'm coming up with so far is a script that looks for a single
> digit number and renames to put a 0 in front of it . . .
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> 
> _______________________________________________
> 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