new UDF- listReverse
<cfscript>
\n/**
\n + Author : Andy Jarrett
\n + Email : mail @ andyjarrett . co . uk
\n + Created : 24/09/2004
\n **/
\n function listReverse(inList){
\n var outArray = ArrayNew(1);
\n var i=0;
\n var j = 1;
\n var inArray = listToArray(inList);
\n
\n for (i=ArrayLen(inArray);i GT 0;i=i-1){
\n outArray[j] = inArray[i];
\n j = j + 1;
\n }
\n return arrayToList(outArray);
\n }
\n</cfscript>
\n/**
\n + Author : Andy Jarrett
\n + Email : mail @ andyjarrett . co . uk
\n + Created : 24/09/2004
\n **/
\n function listReverse(inList){
\n var outArray = ArrayNew(1);
\n var i=0;
\n var j = 1;
\n var inArray = listToArray(inList);
\n
\n for (i=ArrayLen(inArray);i GT 0;i=i-1){
\n outArray[j] = inArray[i];
\n j = j + 1;
\n }
\n return arrayToList(outArray);
\n }
\n</cfscript>
Also a thanks goes to Raymond Simmons as used in the code is his ArrayReverse UDF from CFLib.org