Re: Multi-Densional Array Sorting?

From: Date: Tue, 12 Mar 2002 00:12:58 +0000
Subject: Re: Multi-Densional Array Sorting?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88120@lists.php.net to get a copy of this message
In article <200203111541.g2BFfs632210@click07.netmegs.com>, houser@houserdesign.com says... > Okay - here's one for you. Probably something really small and stoopid which I'm > fergeting, but I don't mind a little egg on my face as long as I can figure out the problem. > > Since you may or may not be down, I've included plenty o'comments to assist you in > looking at this issue for me - thanks, by the way! > > I'm having a problem in the code below. In simple, if you were to copy and paste the code > to a file and run it on a PHP enabled server, you'll see a nifty table. Click on any one of the > column headings and BAM!! - the column gets resorted (either ascending or descending) WITH ONE > EXCEPTION - if you click on the last column heading, be ready to have your task manager window open > so you can kill your browser, or else this puppy will lock your box tighter than a Bavarian virgin!! > > It doesn't seem to matter WHAT the last column is, as evident by the last column name in > the below example - previously it would bag on position. Now position works fine, but be wary of > test. > > So I know it has to be something with the last column, but am having a little difficulty > fighting my way out of this paper bag. > > Any thoughts? Well, I can tell you that you seem to have a non-terminating loop there somewhere; I tried a run in both directions on the last column and found that what I was getting back was an infinite (till I hit STOP) number of the first record in order. Hope that points you in the right direction. Uh, whatever you are using to mail doesn't word wrap too well, and my Gravity doesn't tidy up line wrap on quotes, sorry! -- David Robley Temporary Kiwi! Quod subigo farinam

« previous php.general (#88120) next »