Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
DCS Admin #1
Array Sorting
Hey everyone,
I figured someone out there must have come across the need for this before, so
rather than continue banging my head against the wall, I turn to the community.
Basically, I have an array of structs. Within each array element, is a struct
key that contains a numeric value. This array is built in a relatively random
order. Once I have the completed array, I need to be able to rebuild the array
sorted, either ASC or DESC, by this one struct key.
So in essence, I need to be able to restructure an array based on sorting of
myArray[x].myStructKey
I've tried duplicating the concept of a C/C++ Bubble Sort, but for some reason
I end up having to refresh a couple times before the array is sorted correctly.
Anyone have a function like this that already exists?
Thanks so much in advance,
DCS Admin Guest
-
Sorting array vs sorting paginated array
....pulling in a long list of photos in a gallery, and I have a sort function working within the pages of data fine. I need to bring it back out of... -
Sorting an Array containing a structure...
I a loop nested in a loop that drives a query that kind of walks backwards out by a commodity classification then by region classification... so... -
Advance Sorting Array
Hello How would one go about sorting a (Jagged Array??). Here is my code of the array that is getting populated with all users in active... -
[PHP] Array Sorting, 2 items...
> -----Original Message----- Well, erm, maybe I've got the wrong glasses on today, or maybe you've made a cut'n'paste boo-boo, but it sure looks... -
Sorting a Multidimensional Array
I have an array like this: $events = array( array( '2003-07-01', 'Event Title 1', '1' //ID Number (not unique) ), array( '2003-07-02', -
-
pukkel #3
Re: Array Sorting
I think you might find something useful here: [url]http://www.cflib.org/udf.cfm?ID=359[/url]
pukkel Guest



Reply With Quote

