sorting zip codes
Rich Lague
laguer at ucs.orst.edu
Sun Jul 10 23:45:14 EDT 2005
Thanks Dar,
Your suggestion was the easiest. All I had to do was remove "numeric".
Rich
On Sunday, July 10, 2005, at 08:30 PM, Dar Scott wrote:
>
> On Jul 10, 2005, at 5:45 PM, Sarah Reichelt wrote:
>
>>> I’m trying to set up a sort of a stack of address cards by zip code.
>>> Some of the zips are only the first 5 numbers and some of them are
>>> in the form “xxxxx-xxxx”.
>>>
>>> The script, “sort cards numeric by field "zip"“ sorts all the 9
>>> number zips first, then sorts the 5 number zips-- not what I want.
>>
>> Untested but worth a try:
>>
>> set the itemDelimiter to "-"
>> sort cards of this stack numeric by item 1 of field “zip”
>
> I wonder if 'sort cards text by field "zip"' would do what is needed.
> I would think it would sort like this:
>
> 00234
> 00234-1234
> 00235
>
> Dar
>
> --
> **********************************************
> DSC (Dar Scott Consulting & Dar's Lab)
> http://www.swcp.com/dsc/
> Programming and software
> **********************************************
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list