sorting zip codes
    Sarah Reichelt 
    sarahr at genesearch.com.au
       
    Sun Jul 10 19:45:43 EDT 2005
    
    
  
> 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”
HTH,
Sarah
    
    
More information about the use-livecode
mailing list