Re: [PHP-DB] Sorting a 2 dimension array

2001-10-05 Thread Steve Farmer
Hi, Why don't you sort the query to MYSQL and have the records delivered in the order you want them? HTH Steve At 5:31 PM +0930 5/10/01, John Clarke wrote: >I would like to sort a 2 dimensional array based on the value of one of the >keys of each element. > >I have an array returned from a msql

RE: [PHP-DB] Sorting a 2 dimension array

2001-10-05 Thread Beau Lebens
1 PM // To: [EMAIL PROTECTED] // Subject: [PHP-DB] Sorting a 2 dimension array // // // I would like to sort a 2 dimensional array based on the // value of one of the // keys of each element. // // I have an array returned from a msql query which contains 10 // records/elements and each recor

Re: [PHP-DB] Sorting a 2 dimension array

2001-10-05 Thread Robert Gormley
Is ksort() what you're looking for? "Sorts an array by key, maintaining key to data correlations." Robert At 05:31 PM 5/10/2001 +0930, John Clarke wrote: >I would like to sort a 2 dimensional array based on the value of one of the >keys of each element. > >I have an array returned from a msql q

[PHP-DB] Sorting a 2 dimension array

2001-10-05 Thread John Clarke
I would like to sort a 2 dimensional array based on the value of one of the keys of each element. I have an array returned from a msql query which contains 10 records/elements and each record 5 fields/keys. I would like to sort the records based on the value of a particular field in each record.