Perhaps looping over the list sorted adding values to a second list before adding values to the second list check if the list contains the value already if not add it if it does dont add it. If you're using cf5 there may already be a UDF to do this already on
<cfloop index="item" list="list1">
<cfif ListContains(list2, item [, delimiters]) IS 0>
<!--- add item to second list --->
</cfif>
</cfloop>
success
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.