<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 6 - CFML_Reference - functions-pt2102.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T15:21:13</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt2102.htm#4903" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt2102.htm#1008" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt2102.htm#903" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt2102.htm#844" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt2102.htm#4903">
		<title>coldfusion/6/CFML_Reference/functions-pt2102.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt2102.htm#4903</link>
		<description>Please note that non-English characters are not sorted correctly. For example, &quot;Ö&quot; comes after &quot;Z&quot;.</description>
		<dc:creator>m c d</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-01-06T07:26:19</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt2102.htm#1008">
		<title>coldfusion/6/CFML_Reference/functions-pt2102.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt2102.htm#1008</link>
		<description>This function is actually just misnamed. It should be StructKeyArraySorted(). This is because this function functions exactly the same as StructKeyArray() with the exception that the array elements can be sorted according to one of the members of the structure parameter.</description>
		<dc:creator>tedmasterweb</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-04-22T11:18:00</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt2102.htm#903">
		<title>coldfusion/6/CFML_Reference/functions-pt2102.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt2102.htm#903</link>
		<description>There is no way to &quot;permanently&quot; sort a structure, not even with a recursive cfscript function. As soon as you call the structure, it reverts to whatever internal sort state the cf engine decides the structure should have. I've read somewhere that this is a desired behavior, but I find it to be counter productive as I rarely output the contents of a structure in an unsorted list.&lt;br&gt;&lt;br&gt;The work-around is to include something along the lines of the following in your code:&lt;br&gt;&lt;br&gt;// get an array of the structure keys, sorted by whatever subkey you need. In this case the subkey is &quot;name&quot;&lt;br&gt;sorted = structsort ( structs, &quot;textnocase&quot;, &quot;ASC&quot;, &quot;name&quot; );&lt;br&gt;&lt;br&gt;// walk through each element of sorted, calling the corresponding structure and doing something with its content&lt;br&gt;for ( x = 1; x lte ArrayLen ( sorted ); x = x + 1 )&lt;br&gt;{&lt;br&gt;    result = result &amp; structs[sorted[x]].name &amp; &quot;&lt;br /&gt;&quot;;&lt;br&gt;}&lt;br&gt;&lt;br&gt;// return the sorted list of names...&lt;br&gt;return result;</description>
		<dc:creator>tedmasterweb</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-04-22T09:56:00</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt2102.htm#844">
		<title>coldfusion/6/CFML_Reference/functions-pt2102.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt2102.htm#844</link>
		<description>It doesn't return an array of structures, it returns an array of strings.</description>
		<dc:creator>hotwater</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-01-09T13:48:00</dc:date>
	</item>
	</rdf:RDF>

