of stForm[kArray[i]]. As for the keys, as I mentioned above there should be no chance of having duplicate numeric values returned, so I can just match up the values to their keys in the original form now that they are in order.
>if you want it to insert only numeric values...the UDF should look like:
>
><cfscript>
> function sortForm(stForm) {
> var formValueArray = arrayNew(1);
> var kArray = structKeyArray(stForm);
>
> for (i=1; i LTE arrayLen(kArray); i=i+1) {
> if (isNumeric(stForm[kArray[i]])) {
> formValueArray[arrayLen(formValueArray)+1] = stForm[kArray[i]];
> }
> }
>
> temp = arraySort(formValueArray, 'numeric');
> return formValueArray;
> }
></cfscript>
>
>this does NOT yet retain the form field name. still not sure how you intend
>to handle that.
>----- Original Message -----
>From: "Morgan Senkal" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Thursday, May 20, 2004 3:00 PM
>Subject: Re: Sort #FORM# by value?
>
>
>the cfdump I'm getting back for the FORM element:
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

