Hi

the below tcl function will do the trick

proc sortAttr {attr} {

    FME_SetAttribute $attr [  join [ lsort -dictionary [ split [ 
FME_GetAttribute $attr ]  ,]] , ]
}



for a documentation off the tcl commands see, 
http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm


Peter



>From: "nichols2bdarwindpi" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: [fme] Sorting mixed attribute types
>Date: Wed, 06 Jun 2007 05:01:52 -0000
>
>I need to sort numeric and alpha types together in the following way:
>
>Example:  1,2,3,3a,3b,4,5,5a,6,7,8,9,10,11a,...........you get the
>idea?
>
>Thanks,
>
>Russell
>

_________________________________________________________________
Download din yndlingsmusik på MSN Music:  http://www.msn.dk/music  det er 
nemt og billigt



For insights into what's up at Safe Software and what's on the development 
horizon, visit Safe's blog at spatial-etl.blogspot.com.

Love FME? Then open your diary to March 6-7, 2008 and write this... "Second 
Worldwide FME User Conference - Must Attend!" See 
http://www.safe.com/company/fmeuc2008/index.php for more details. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/fme/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/fme/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to