Hi there,

I want to sort an array:

Array(id, name, price)

by the 'price' field

I've looked up sort code on the net (for classic asp - vbscript), but
the QuickSort code I found (on 4guysfromrolla) was giving me a
memory-stack overflow error (my array only has around 50 rows)
or was only designed for 2-d arrays.

Anyone got a url of sort code for the above 3-dimensional array?

It doesn't even have to be Quick Sort since it's backend stuff and I
don't mind waiting for a Bubble sort,etc

Cheers,
Peter
--

"I hear ma train a comin'
... hear freedom comin"

Re: quick sort of 3-d array by Michael

Michael
Thu Apr 28 15:10:23 CDT 2005

Stimp wrote:
> Hi there,
>
> I want to sort an array:
>
> Array(id, name, price)
>
> by the 'price' field
>
> I've looked up sort code on the net (for classic asp - vbscript), but
> the QuickSort code I found (on 4guysfromrolla) was giving me a
> memory-stack overflow error (my array only has around 50 rows)
> or was only designed for 2-d arrays.
>
> Anyone got a url of sort code for the above 3-dimensional array?
>
> It doesn't even have to be Quick Sort since it's backend stuff and I
> don't mind waiting for a Bubble sort,etc


I would suggest using an ADO disconnected recordset...

Google Search
http://groups-beta.google.com/groups?q=sort%20array%20disconnected%20recordset%20%20group:*.scripting&hl=en&lr=lang_en&num=100&scoring=d



--
Michael Harris
Microsoft.MVP.Scripting